windows平台代码修正

This commit is contained in:
2026-09-06 00:01:49 +08:00
parent 41151b7f8b
commit 005a3e7733
6 changed files with 80 additions and 32 deletions
+5
View File
@@ -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);