~separated browser Selections from game launchers for compat tool

This commit is contained in:
Roy 2024-01-28 20:52:48 -08:00 committed by GitHub
parent 3146fdd11e
commit 9a8d77a4cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,7 +266,11 @@ game_launchers = {
'Minecraft: Java Edition', 'Minecraft: Java Edition',
'Playstation Plus', 'Playstation Plus',
'DMM Games', 'DMM Games',
'VK Play', 'VK Play'
}
#Chrome Based "Launchers"
chrome_launchers = {
'Hulu', 'Hulu',
'Twitch', 'Twitch',
'Amazon Luna', 'Amazon Luna',
@ -275,8 +279,9 @@ game_launchers = {
'Disney+', 'Disney+',
'Netflix', 'Netflix',
'GeForce Now', 'GeForce Now',
'Xbox Game Pass' 'Xbox Game Pass',
} # replace with your actual game launchers 'movie-web'
}
# Mapping between shortcut names and SteamGridDB names # Mapping between shortcut names and SteamGridDB names
name_mapping = { name_mapping = {
@ -316,8 +321,11 @@ for shortcut in shortcuts['shortcuts'].values():
# Download and apply artwork # Download and apply artwork
get_sgdb_art(game_id, unsigned_shortcut_id) get_sgdb_art(game_id, unsigned_shortcut_id)
new_shortcuts_added = True new_shortcuts_added = True
if add_compat_tool(unsigned_shortcut_id): # Only add compat tool if not a chrome launcher
shortcuts_updated = True if app_name not in chrome_launchers:
if add_compat_tool(unsigned_shortcut_id):
shortcuts_updated = True
# End of finding the Launchers and applying artwork to already made shortcuts from NonSteamLaunchers.sh # End of finding the Launchers and applying artwork to already made shortcuts from NonSteamLaunchers.sh