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:
epicmeme546
2026-11-09 10:12:45 -05:00
parent e3bfa3d40a
commit 26be3f9c3c
3 changed files with 24 additions and 2 deletions

View File

@@ -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