Skip to content

Commit fadab48

Browse files
authored
Add files via upload
1 parent b12c04c commit fadab48

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

NSLGameScanner.py

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
indie_launcher = os.environ.get('indie_launcher', '')
108108
stove_launcher = os.environ.get('stove_launcher', '')
109109
humble_launcher = os.environ.get('humble_launcher', '')
110+
gryphlink_launcher = os.environ.get('gryphlink_launcher', '')
111+
110112

111113
#Variables of the Launchers
112114

@@ -120,6 +122,8 @@
120122
itchioshortcutdirectory = os.environ.get('itchioshortcutdirectory')
121123
legacyshortcutdirectory = os.environ.get('legacyshortcutdirectory')
122124
humbleshortcutdirectory = os.environ.get('humbleshortcutdirectory')
125+
gryphlinkshortcutdirectory = os.environ.get('gryphlinkshortcutdirectory')
126+
123127
indieshortcutdirectory = os.environ.get('indieshortcutdirectory')
124128
rockstarshortcutdirectory = os.environ.get('rockstarshortcutdirectory')
125129
glyphshortcutdirectory = os.environ.get('glyphshortcutdirectory')
@@ -2584,6 +2588,7 @@ def inject_thememusic_code(ws_socket):
25842588
"Mozilla Firefox": "https://cdn2.steamgriddb.com/icon_thumb/fe998b49c41c4208c968bce204fa1cbb.png",
25852589
"LibreWolf": "https://cdn2.steamgriddb.com/icon/791608b685d1c61fb2fe8acdc69dc6b5/32/128x128.png",
25862590
"Microsoft Edge": "https://cdn2.steamgriddb.com/icon_thumb/714cb7478d98b1cb51d1f5f515f060c7.png",
2591+
"Gryphlink": "https://i.namu.wiki/i/1CZOhlpjxh3owDKXC9axrnMHtotdDaoFMmnzBvQ0yOqCDOL3rIZpH2DyLfX2UCRul9CxIH0gCn1DmRodHnKr6-IUmEzSZpZ6p4r9zRbDvwPe94gZnek0VaIvKfsWsx6L28czwaiz0Mj1NNayAkypNQ.webp"
25872592
};
25882593
25892594
const launcherName = foundLauncher;
@@ -3189,7 +3194,7 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir, lau
31893194
unsigned_shortcut_id = get_unsigned_shortcut_id(signed_shortcut_id)
31903195

31913196
# Only store app ID for specific launchers
3192-
if appname in ['Epic Games', 'Gog Galaxy', 'Ubisoft Connect', 'Battle.net', 'EA App', 'Amazon Games', 'itch.io', 'Legacy Games', 'Humble Bundle', 'IndieGala Client', 'Rockstar Games Launcher', 'Glyph', 'Minecraft Launcher', 'Playstation Plus', 'VK Play', 'HoYoPlay', 'Nexon Launcher', 'Game Jolt Client', 'Artix Game Launcher', 'ARC Launcher', 'PURPLE Launcher', 'Plarium Play', 'VFUN Launcher', 'Tempo Launcher', 'Pokémon Trading Card Game Live', 'Antstream Arcade', 'STOVE Client', 'Big Fish Games Manager']:
3197+
if appname in ['Epic Games', 'Gog Galaxy', 'Ubisoft Connect', 'Battle.net', 'EA App', 'Amazon Games', 'itch.io', 'Legacy Games', 'Humble Bundle', 'IndieGala Client', 'Rockstar Games Launcher', 'Glyph', 'Minecraft Launcher', 'Playstation Plus', 'VK Play', 'HoYoPlay', 'Nexon Launcher', 'Game Jolt Client', 'Artix Game Launcher', 'ARC Launcher', 'PURPLE Launcher', 'Plarium Play', 'VFUN Launcher', 'Tempo Launcher', 'Pokémon Trading Card Game Live', 'Antstream Arcade', 'STOVE Client', 'Big Fish Games Manager', 'Gryphlink']:
31933198
app_ids[appname] = unsigned_shortcut_id
31943199

31953200
# Check if shortcut already exists with final values
@@ -3606,6 +3611,9 @@ def track_create_entry(directory, name, launch_options, starting_dir, launcher_n
36063611
track_create_entry(os.environ.get('antstreamshortcutdirectory'), 'Antstream Arcade', os.environ.get('antstreamlaunchoptions'), os.environ.get('antstreamstartingdir'))
36073612
track_create_entry(os.environ.get('stoveshortcutdirectory'), 'STOVE Client', os.environ.get('stovelaunchoptions'), os.environ.get('stovestartingdir'))
36083613
track_create_entry(os.environ.get('bigfishshortcutdirectory'), 'Big Fish Games Manager', os.environ.get('bigfishlaunchoptions'), os.environ.get('bigfishstartingdir'))
3614+
track_create_entry(os.environ.get('gryphlinkshortcutdirectory'), 'Gryphlink', os.environ.get('gryphlinklaunchoptions'), os.environ.get('gryphlinkstartingdir'))
3615+
3616+
36093617
track_create_entry(os.environ.get('repaireaappshortcutdirectory'), 'Repair EA App', os.environ.get('repaireaapplaunchoptions'), os.environ.get('repaireaappstartingdir'))
36103618

36113619

@@ -3812,6 +3820,7 @@ def remove_unwanted_lines(lines, remove_keys):
38123820
'Antstream Arcade': 'AntstreamLauncher',
38133821
'STOVE Client': 'STOVELauncher',
38143822
'Big Fish Games Manager': 'BigFishLauncher',
3823+
'Gryphlink': 'GryphlinkLauncher',
38153824
}
38163825

38173826

@@ -5716,7 +5725,40 @@ def extract_block_info(block):
57165725

57175726

57185727

5728+
# Gryphlink Scanner (Endfield)
5729+
5730+
endfield_exe = (
5731+
f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{gryphlink_launcher}/"
5732+
"pfx/drive_c/Program Files/GRYPHLINK/games/EndField Game/Endfield.exe"
5733+
)
5734+
5735+
# Check if Endfield exists
5736+
if os.path.exists(endfield_exe):
5737+
print(f"File exists: {endfield_exe}")
5738+
5739+
display_name = "Endfield"
5740+
launch_options = (
5741+
f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/"
5742+
f"steamapps/compatdata/{gryphlink_launcher}/\" %command%"
5743+
)
5744+
5745+
exe_path = f"\"{endfield_exe}\""
5746+
start_dir = f"\"{os.path.dirname(endfield_exe)}\""
5747+
5748+
create_new_entry(
5749+
exe_path,
5750+
display_name,
5751+
launch_options,
5752+
start_dir,
5753+
launcher_name="Gryphlink"
5754+
)
5755+
5756+
track_game(display_name, "Gryphlink")
5757+
5758+
else:
5759+
print("Skipping Gryphlink Scanner — Endfield.exe not found")
57195760

5761+
# End of Gryphlink Game Scanner
57205762

57215763

57225764

@@ -5734,7 +5776,7 @@ def extract_block_info(block):
57345776
'Netflix', 'Hulu', 'Tubi', 'Disney+', 'Amazon Prime Video', 'Youtube', 'Youtube TV',
57355777
'Amazon Luna', 'Twitch', 'Venge', 'Rocketcrab', 'Fortnite', 'WebRcade', 'Cloudy Pad',
57365778
'WebRcade Editor', 'Afterplay.io', 'OnePlay', 'AirGPU', 'CloudDeck', 'JioGamesCloud',
5737-
'Plex', 'Apple TV+', 'Crunchyroll', 'PokéRogue', 'NonSteamLaunchers', 'Repair EA App'}
5779+
'Plex', 'Apple TV+', 'Crunchyroll', 'PokéRogue', 'NonSteamLaunchers', 'Repair EA App', 'Gryphlink'}
57385780

57395781

57405782
# --- Boot Video Logic ---

0 commit comments

Comments
 (0)