refactor(core): 统一使用ErrorCode并添加错误日志记录

- 将path_manager和import_export模块的返回值从int/void改为ErrorCode
- 在关键操作中添加日志记录,便于调试和错误追踪
- 更新调用代码以检查错误码并记录错误
- 修改运行命令以管理员权限启动程序
This commit is contained in:
2026-03-26 18:27:38 +08:00
parent 3af0e96060
commit 9a78b88c4a
6 changed files with 80 additions and 38 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ cmake --build build
!打包命令:
build_installer.bat
!运行命令:
build\\PathEditor.exe
powershell -Command "Start-Process 'build\\PathEditor.exe' -Verb RunAs"
*/
// 定义 Windows 消息常量