From b9147997260a6e9ebe291353978830c8741711b9 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 27 Sep 2025 11:52:53 -0400 Subject: Write steam_appid.txt on launch --- apworld/context.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apworld/context.py') 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): async def run_game(): exe_file = settings.get_settings().lingo2_options.exe_file + # This ensures we can use Steam features without having to open the game + # through steam. + steam_appid_path = os.path.join(os.path.dirname(exe_file), "steam_appid.txt") + with open(steam_appid_path, "w") as said_handle: + said_handle.write("2523310") + if Lingo2World.zip_path is not None: # This is a packaged apworld. init_scene = pkgutil.get_data(__name__, "client/run_from_apworld.tscn") -- cgit 1.4.1