about summary refs log tree commit diff stats
path: root/apworld
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-10-05 13:09:25 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-10-05 13:09:25 -0400
commit87cf89b1961564f0daadeaedd1835a0dac01dffc (patch)
tree80ff39b37ddcea1d1b7f086b9fe29e52435eb983 /apworld
parentff125bf97e26eecff6e7cbf89f55ffcf6c222fce (diff)
downloadlingo2-archipelago-87cf89b1961564f0daadeaedd1835a0dac01dffc.tar.gz
lingo2-archipelago-87cf89b1961564f0daadeaedd1835a0dac01dffc.tar.bz2
lingo2-archipelago-87cf89b1961564f0daadeaedd1835a0dac01dffc.zip
Add setting for not auto-starting the game
Diffstat (limited to 'apworld')
-rw-r--r--apworld/__init__.py1
-rw-r--r--apworld/context.py3
2 files changed, 3 insertions, 1 deletions
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):
33 is_exe = True 33 is_exe = True
34 34
35 exe_file: ExecutableFile = ExecutableFile() 35 exe_file: ExecutableFile = ExecutableFile()
36 start_game: bool = True
36 37
37 38
38class Lingo2World(World): 39class 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():
615 615
616def client_main(*launch_args: str) -> None: 616def client_main(*launch_args: str) -> None:
617 async def main(args): 617 async def main(args):
618 async_start(run_game()) 618 if settings.get_settings().lingo2_options.start_game:
619 async_start(run_game())
619 620
620 client_ctx = Lingo2ClientContext(args.connect, args.password) 621 client_ctx = Lingo2ClientContext(args.connect, args.password)
621 game_ctx = Lingo2GameContext() 622 game_ctx = Lingo2GameContext()