~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',
'Playstation Plus',
'DMM Games',
'VK Play',
'VK Play'
}
#Chrome Based "Launchers"
chrome_launchers = {
'Hulu',
'Twitch',
'Amazon Luna',
@ -275,8 +279,9 @@ game_launchers = {
'Disney+',
'Netflix',
'GeForce Now',
'Xbox Game Pass'
} # replace with your actual game launchers
'Xbox Game Pass',
'movie-web'
}
# Mapping between shortcut names and SteamGridDB names
name_mapping = {
@ -316,10 +321,13 @@ for shortcut in shortcuts['shortcuts'].values():
# Download and apply artwork
get_sgdb_art(game_id, unsigned_shortcut_id)
new_shortcuts_added = True
# Only add compat tool if not a chrome launcher
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