From a896792c588095aa24df6302257afb5f466b45ef Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 28 May 2025 13:53:47 -0400 Subject: [PATCH] Hopefully fix bug with bat file generation. --- Toby Doom Launcher.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Toby Doom Launcher.py b/Toby Doom Launcher.py index 52c39fb..cc651d3 100755 --- a/Toby Doom Launcher.py +++ b/Toby Doom Launcher.py @@ -1630,13 +1630,9 @@ class DoomLauncher(QMainWindow): for flag in gameFlags: content.append(f" {flag} ^") - # Remove the trailing ^ from the last line - if content[-1].endswith(" ^"): - content[-1] = content[-1][:-2] - - # Add TTS powershell script + # Add TTS powershell script (this is the final line, no ^ needed) content.append(" | powershell -ExecutionPolicy Bypass -File DoomTTS.ps1") - + else: # Linux/Mac: save in ~/.local/games/doom baseDir = Path.home() / ".local/games/doom"