windows平台代码修正
This commit is contained in:
@@ -12,6 +12,11 @@ struct ProcessResult {
|
||||
std::string output;
|
||||
};
|
||||
|
||||
// 构造 filesystem::path 时优先按 UTF-8 解释,若输入不是合法 UTF-8(例如
|
||||
// Windows 环境变量里按系统代码页编码的中文路径)则回退到本地代码页构造,
|
||||
// 避免 u8path 抛出 conversion_error 导致未捕获异常使程序崩溃。
|
||||
std::filesystem::path to_path(const std::string& value);
|
||||
|
||||
std::string platform_name();
|
||||
std::string find_spine_executable();
|
||||
bool valid_spine_executable(const std::string& path);
|
||||
|
||||
Reference in New Issue
Block a user