From 18123b0cf7f8b2862f691a3b9aad34a75ae9a71d Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Tue, 25 Mar 2025 02:53:55 -0700 Subject: [PATCH] added purple launcher --- NSLGameScanner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 071613e..3ce73ff 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -100,6 +100,7 @@ nexonshortcutdirectory = os.environ.get('nexonshortcutdirectory') gamejoltshortcutdirectory = os.environ.get('gamejoltshortcutdirectory') artixgameshortcutdirectory = os.environ.get('artixgameshortcutdirectory') arcshortcutdirectory = os.environ.get('arcshortcutdirectory') +purpleshortcutdirectory = os.environ.get('purpleshortcutdirectory') poketcgshortcutdirectory = os.environ.get('poketcgshortcutdirectory') antstreamshortcutdirectory = os.environ.get('antstreamshortcutdirectory') repaireaappshortcutdirectory = os.environ.get('repaireaappshortcutdirectory') @@ -528,7 +529,7 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir): compatTool = add_compat_tool(unsigned_shortcut_id, launchoptions) # Only store the app ID for specific launchers - 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', 'Pokémon Trading Card Game Live', 'Antstream Arcade']: + 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', 'Pokémon Trading Card Game Live', 'Antstream Arcade']: app_ids[appname] = unsigned_shortcut_id # Check if the game already exists in the shortcuts @@ -756,6 +757,7 @@ create_new_entry(os.environ.get('hoyoplayshortcutdirectory'), 'HoYoPlay', os.env create_new_entry(os.environ.get('nexonshortcutdirectory'), 'Nexon Launcher', os.environ.get('nexonlaunchoptions'), os.environ.get('nexonstartingdir')) create_new_entry(os.environ.get('gamejoltshortcutdirectory'), 'Game Jolt Client', os.environ.get('gamejoltlaunchoptions'), os.environ.get('gamejoltstartingdir')) create_new_entry(os.environ.get('artixgameshortcutdirectory'), 'Artix Game Launcher', os.environ.get('artixgamelaunchoptions'), os.environ.get('artixgamestartingdir')) +create_new_entry(os.environ.get('purpleshortcutdirectory'), 'PURPLE Launcher', os.environ.get('purplegamelaunchoptions'), os.environ.get('purplegamestartingdir')) create_new_entry(os.environ.get('arcshortcutdirectory'), 'ARC Launcher', os.environ.get('arclaunchoptions'), os.environ.get('arcstartingdir')) create_new_entry(os.environ.get('poketcgshortcutdirectory'), 'Pokémon Trading Card Game Live', os.environ.get('poketcglaunchoptions'), os.environ.get('poketcgstartingdir')) create_new_entry(os.environ.get('antstreamshortcutdirectory'), 'Antstream Arcade', os.environ.get('antstreamlaunchoptions'), os.environ.get('antstreamstartingdir')) @@ -886,6 +888,7 @@ folder_names = { 'Game Jolt Client': 'GameJoltLauncher', 'Artix Game Launcher': 'ArtixGameLauncher', 'ARC Launcher': 'ARCLauncher', + 'PURPLE Launcher': 'PURPLELauncher', 'Pokémon Trading Card Game Live': 'PokeTCGLauncher', 'Antstream Arcade': 'AntstreamLauncher', }