Skip to content

Commit

Permalink
makes --nogui not crash (ArchipelagoMW#11)
Browse files Browse the repository at this point in the history
* same fix as for Text Client in 3633, I do think there are other issues with UT --nogui though

* oop
  • Loading branch information
qwint authored Jul 16, 2024
1 parent 2add1a4 commit 02c9537
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion worlds/tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@


def launch_client():
import sys
from .TrackerClient import launch as TCMain
launch_subprocess(TCMain, name="Universal Tracker client")
if not sys.stdout or "--nogui" not in sys.argv:
launch_subprocess(TCMain, name="Universal Tracker client")
else:
TCMain()

class TrackerWorld:
pass
Expand Down

0 comments on commit 02c9537

Please sign in to comment.