about summary refs log tree commit diff stats
path: root/apworld/context.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-09-27 11:52:53 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-09-27 11:52:53 -0400
commitb9147997260a6e9ebe291353978830c8741711b9 (patch)
tree21cd256a22e5f6727c094f60d07c25fabdb601e9 /apworld/context.py
parent2125ccf715544d3703cadf064a85331de8b053e4 (diff)
downloadlingo2-archipelago-b9147997260a6e9ebe291353978830c8741711b9.tar.gz
lingo2-archipelago-b9147997260a6e9ebe291353978830c8741711b9.tar.bz2
lingo2-archipelago-b9147997260a6e9ebe291353978830c8741711b9.zip
Write steam_appid.txt on launch
Diffstat (limited to 'apworld/context.py')
-rw-r--r--apworld/context.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/apworld/context.py b/apworld/context.py index 41e833e..0a058e5 100644 --- a/apworld/context.py +++ b/apworld/context.py
@@ -274,6 +274,12 @@ async def process_game_cmd(ctx: Lingo2GameContext, args: dict):
274async def run_game(): 274async def run_game():
275 exe_file = settings.get_settings().lingo2_options.exe_file 275 exe_file = settings.get_settings().lingo2_options.exe_file
276 276
277 # This ensures we can use Steam features without having to open the game
278 # through steam.
279 steam_appid_path = os.path.join(os.path.dirname(exe_file), "steam_appid.txt")
280 with open(steam_appid_path, "w") as said_handle:
281 said_handle.write("2523310")
282
277 if Lingo2World.zip_path is not None: 283 if Lingo2World.zip_path is not None:
278 # This is a packaged apworld. 284 # This is a packaged apworld.
279 init_scene = pkgutil.get_data(__name__, "client/run_from_apworld.tscn") 285 init_scene = pkgutil.get_data(__name__, "client/run_from_apworld.tscn")