Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored Jan 12, 2025
1 parent a7de732 commit 2c57910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2c57910

Please sign in to comment.