Files
Cmake 195f02a41d dogprotect: VMProtect → DogProtect 全量改名 + VM 节名改 .dog
- 产品名/展示串、SDK 与运行时导出 API、.NET 命名空间全部换为 DogProtect
- 文件与目录改名: dogprotect.sln / DogProtect/ / DogProtectCon/ / sdk/DogProtect.SDK /
  sdk/DogProtectSDK.{h,pas,bas,inc} / runtime/DogProtect.Runtime/ / core/dogprotect.rc /
  app/dogprotect_gui.app
- 项目文件扩展名 .vmp → .dog(含 GUI 过滤器、默认输出名、示例工程、单测)
- VM 代码节名默认 .dog(上游为随机 ".xyz"),产物节为 .dog0/.dog1/...
- 授权数据与配置: DogProtect.dat / DogProtectLicense.ini / Global\\DogProtect.dat
- 域名占位 dogprotect.example,bundle id com.dogprotect.dogprotect
- 保留 VMP_* 内部宏与 third-party/
- BUILD-LINUX.md 增补改名说明与 SDK 兼容性提示
2026-11-23 16:15:28 +08:00

35 lines
1022 B
C++

#ifndef CONSOLE_H
#define CONSOLE_H
class ConsoleLog : public ILog
{
public:
ConsoleLog();
virtual void Notify(MessageType type, IObject *sender, const std::string &message = "");
virtual void StartProgress(const std::string &caption, unsigned long long max);
virtual void StepProgress(unsigned long long value, bool is_project);
virtual void EndProgress();
virtual void set_warnings_as_errors(bool value) { warnings_as_errors_ = value; }
virtual void set_arch_name(const std::string &arch_name) { arch_name_ = arch_name; }
ConsoleLog &operator<<(ConsoleLog & (* function)(ConsoleLog &));
ConsoleLog &operator<<(const std::string &text);
private:
enum {
NEED_PRINT_PERCENT = (size_t)-1
};
void PrintArch();
void PrintPercent();
unsigned long long pos_;
unsigned long long max_;
size_t percent_value_;
size_t percent_chars_;
std::string caption_;
bool warnings_as_errors_;
bool show_progress_;
std::string arch_name_;
};
ConsoleLog &endl(ConsoleLog &log);
#endif