Hopefully fix bug with bat file generation.

This commit is contained in:
Storm Dragon 2025-05-28 13:53:47 -04:00
parent 23441c8b28
commit a896792c58

View File

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