mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
Nothing kept a second copy of the game off the same profile (a double start, or the restart going ahead after 30 s while the old process still ran). Its start took the first copy's commit in progress for an interrupted one and deleted it, removed the first copy's working copy under its open files, and then both wrote into one save-tx/work, so saves were lost or mixed. The save storage now takes <profile>/instance.lock (plat_lock_file: a file no other process can open on Windows, flock on Linux) and a second copy stops with "another copy of the game is running". --probe-fs gives the lock back before deleting its temporary profile and passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
86 KiB
86 KiB