From 77406db7376b4e7bad4ebbe0f8f0d2617bda6393 Mon Sep 17 00:00:00 2001 From: Brosef Date: Sun, 22 Jun 2025 17:56:08 +0100 Subject: [PATCH] Added check to close the launcher along with the game if the game was launched directly --- __main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__main__.py b/__main__.py index 0503c79..dbefa03 100644 --- a/__main__.py +++ b/__main__.py @@ -100,6 +100,10 @@ class Launcher: self.currentGame = None os.chdir(originalCWD) pygame.display.set_caption('Pain Jam Launcher') + # If we launched directly into a game + if args.gameID != None: + # Exit the launcher when we exit the game + self.running = False else: if event.type == pygame.QUIT: # Exit the launcher.