fix(launcher): detect stale stock backups and distinguish missing backups on launch

Read the live executable version in inspectGameFolder instead of masking externally updated folders behind an older wtoffline/stock backup, and atomically refresh stale or unreadable backups during install, external stock import, and relocation. Log exact copy/stock/recorded versions on launch mismatches and report a dedicated launch_stock_missing error when wtoffline/stock/win64/aces.exe is missing or unreadable.

Checked: root typecheck, launcher typecheck, zh-CN/en locale key parity (616/616), and launcher electron-vite build.
This commit is contained in:
N0VAN0M4LY committed 2026-12-02 09:06:28 +08:00
1 parent f3d04d137f
commit c55ec4ed57
8 files changed
+67 -22

No files matched your search

@@ -706,6 +706,7 @@
"launch_steam_confirmation_required": "Confirm the Steam locations in Client Maintenance before launching.",
"launch_location": "The client, stock backup, or data folder location is invalid.",
"launch_stock_version": "The stock backup and client versions do not match.",
"launch_stock_missing": "The original file backup (wtoffline\\stock) is missing or unreadable. Check your security software, or remove this client entry and add it again.",
"launch_build_failed": "The game files could not be generated.",
"launch_build_unavailable": "The build found unavailable patches that require review.",
"launch_port_busy": "The local server port is already in use.",
@@ -706,6 +706,7 @@
"launch_steam_confirmation_required": "请在客户端维护中确认 Steam 目录后再启动。",
"launch_location": "客户端、原版文件备份或数据目录的位置无效。",
"launch_stock_version": "原版文件备份的版本与客户端不一致。",
"launch_stock_missing": "缺少或无法读取原版文件备份(wtoffline\\stock)。请检查安全软件拦截记录,或移除此客户端登记后重新添加。",
"launch_build_failed": "无法生成游戏文件。",
"launch_build_unavailable": "生成游戏文件时发现需要重新确认的不可用补丁。",
"launch_port_busy": "本地服务器端口已被占用。",