工具
文本与报错
TextLoader、StringUtils、Error / Message
TextLoader.h / StringUtils.h / Error.h
加载键值文本
SA 上 Get 返回 char*;III / VC 为 wchar_t*(见头文件 char_t)。
bool Load(const std::string& fileName);
const char_t* Get(const char* key);
void Clear();字符映射替换
void ApplyTable(string_t& str);
extern std::map<char_t, char_t> table;窄转宽写固定缓冲
命名空间 StringUtils(不在 plugin::)。超出长度会截断。
template <size_t S>
void atow_static(wchar_t (&wt)[S], char const* at);弹窗提示与报错
Message / Error / Warning 走 MessageBox,适合调试。Error 返回 false,可写 return Error(...)。
template <typename... ArgTypes>
bool Message(char const* format, ArgTypes... Args);
// Error / Warning / Internal* 等同理