From 87cf89b1961564f0daadeaedd1835a0dac01dffc Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 5 Oct 2025 13:09:25 -0400 Subject: Add setting for not auto-starting the game --- apworld/__init__.py | 1 + apworld/context.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apworld/__init__.py b/apworld/__init__.py index 1d12050..9e445c7 100644 --- a/apworld/__init__.py +++ b/apworld/__init__.py @@ -33,6 +33,7 @@ class Lingo2Settings(Group): is_exe = True exe_file: ExecutableFile = ExecutableFile() + start_game: bool = True class Lingo2World(World): diff --git a/apworld/context.py b/apworld/context.py index 7b5f0bc..a0ee34d 100644 --- a/apworld/context.py +++ b/apworld/context.py @@ -615,7 +615,8 @@ async def run_game(): def client_main(*launch_args: str) -> None: async def main(args): - async_start(run_game()) + if settings.get_settings().lingo2_options.start_game: + async_start(run_game()) client_ctx = Lingo2ClientContext(args.connect, args.password) game_ctx = Lingo2GameContext() -- cgit 1.4.1