mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-20 18:59:58 -04:00
Keep the launcher hidden through the game's own Restart.
The game's Restart ends the process the launcher started and starts another. The launcher took that for the game ending: it came back over the game and forgot a game was running, so its Play could start a second copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -809,7 +809,9 @@ class App:
|
||||
self.root.after(1000, self.watch_game)
|
||||
|
||||
def watch_game(self):
|
||||
if self.game_proc and self.game_proc.poll() is None:
|
||||
# The game's own Restart ends the process started here and starts another (gfx_present.c gfx_window_closed)
|
||||
gd = self.settings.get('game_dir')
|
||||
if (self.game_proc and self.game_proc.poll() is None) or (gd and saves.game_running(gd)):
|
||||
self.root.after(1000, self.watch_game)
|
||||
return
|
||||
code = self.game_proc.returncode if self.game_proc else 0
|
||||
|
||||
Reference in New Issue
Block a user