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:
1 parent
f3d04d137f
commit
c55ec4ed57
8 files changed
+67
-22
No files matched your search
@@ -59,6 +59,8 @@ export const APP_ERROR_CODES = [
|
||||
'launch_steam_confirmation_required',
|
||||
'launch_location',
|
||||
'launch_stock_version',
|
||||
/** The wtoffline/stock backup executable is missing or unreadable before launch. */
|
||||
'launch_stock_missing',
|
||||
'launch_build_failed',
|
||||
'launch_build_unavailable',
|
||||
'launch_port_busy',
|
||||
|
||||
Reference in new issue
Block a user