From 2c579109e765a8a1fef3d5122008c705df343d4c Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sat, 11 Jan 2025 23:52:52 -0800 Subject: [PATCH] Add files via upload --- NSLGameScanner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 8051bc5..a5dcc96 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -569,7 +569,7 @@ def extract_base_path(launchoptions): return match.group(1) raise ValueError("STEAM_COMPAT_DATA_PATH not found in launch options") -def modify_shortcut_for_umu(appname, exe, launchoptions, startingdir, logged_in_home, compat_tool_name): +def modify_shortcut_for_umu(appname, exe, launchoptions, startingdir): # Skip processing if STEAM_COMPAT_DATA_PATH is not present if 'STEAM_COMPAT_DATA_PATH=' not in launchoptions: print(f"Launch options for {appname} do not contain STEAM_COMPAT_DATA_PATH. Skipping modification.") @@ -600,13 +600,13 @@ def modify_shortcut_for_umu(appname, exe, launchoptions, startingdir, logged_in_ # Update only the launchoptions part for different game types updated_launch = launchoptions - + # Hoyoplay - Extract the game identifier match = re.search(r'--game=(\w+)', launchoptions) if match: codename = match.group(1) # Capture the identifier updated_launch = f"'--game={codename}'" - + if "origin2://game/launch?offerIds=" in launchoptions: updated_launch = f'"origin2://game/launch?offerIds={codename}"' elif "amazon-games://play/amzn1.adg.product." in launchoptions: