-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
config.py
135 lines (126 loc) · 6.64 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/usr/bin/env python3
from decouple import config
from pathlib import Path
# paths
logged_in_home = str(Path.home())
steam_apps = f"{logged_in_home}/.local/share/Steam/steamapps"
compat_data = f"{steam_apps}/compatdata"
compat_data_path = f"{compat_data}/NonSteamLaunchers/pfx/drive_c"
steamuser_path = f"{logged_in_home}/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c/users/steamuser/AppData/Local"
# launchers
amazongames_path1 = f"{compat_data_path}/Program Files/Amazon Games/App/Amazon Games.exe"
amazongames_path2 = f"{steamuser_path}/Amazon Games/App/Amazon Games.exe"
battlenet_path1 = f"{compat_data_path}/Program Files (x86)/Battle.net/Battle.net Launcher.exe"
battlenet_path2 = f"{steamuser_path}/Program Files (x86)/Battle.net/Battle.net Launcher.exe"
dmm_path1 = f"{compat_data_path}/Program Files/DMMGamePlayer/DMMGamePlayer.exe"
dmm_path2 = f"{steamuser_path}/Program Files/DMMGamePlayer/DMMGamePlayer.exe"
eaapp_path1 = f"{compat_data_path}/Program Files/Electronic Arts/EA Desktop/EA Desktop/EADesktop.exe"
eaapp_path2 = f"{steamuser_path}/Program Files/Electronic Arts/EA Desktop/EA Desktop/EADesktop.exe"
epic_games_launcher_path1 = f"{compat_data_path}/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe"
epic_games_launcher_path2 = f"{steamuser_path}/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe"
glyph_path1 = f"{compat_data_path}/Program Files (x86)/Glyph/GlyphClient.exe"
glyph_path2 = f"{steamuser_path}/Program Files (x86)/Glyph/GlyphClient.exe"
gog_galaxy_path1 = f"{compat_data_path}/Program Files (x86)/GOG Galaxy/GalaxyClient.exe"
gog_galaxy_path2 = f"{steamuser_path}/Program Files (x86)/GOG Galaxy/GalaxyClient.exe"
humblegames_path1 = f"{compat_data_path}/Program Files/Humble App/Humble App.exe"
humblegames_path2 = f"{steamuser_path}/Program Files/Humble App/Humble App.exe"
indiegala_path1 = f"{compat_data_path}/Program Files/IGClient/IGClient.exe"
indiegala_path2 = f"{steamuser_path}/Program Files/IGClient/IGClient.exe"
itchio_path1 = f"{compat_data_path}/users/steamuser/AppData/Local/itch/app-25.6.2/itch.exe"
itchio_path2 = f"{steamuser_path}/itch/app-25.6.2/itch.exe"
legacygames_path1 = f"{compat_data_path}/Program Files/Legacy Games/Legacy Games Launcher/Legacy Games Launcher.exe"
legacygames_path2 = f"{steamuser_path}/Program Files/Legacy Games/Legacy Games Launcher/Legacy Games Launcher.exe"
minecraft_path1 = f"{compat_data_path}/Program Files (x86)/Minecraft Launcher/MinecraftLauncher.exe"
minecraft_path2 = f"{steamuser_path}/Program Files (x86)/Minecraft Launcher/MinecraftLauncher.exe"
origin_path1 = f"{compat_data_path}/Program Files (x86)/Origin/Origin.exe"
origin_path2 = f"{steamuser_path}/Program Files (x86)/Origin/Origin.exe"
psplus_path1 = f"{compat_data_path}/Program Files (x86)/PlayStationPlus/pspluslauncher.exe"
psplus_path2 = f"{steamuser_path}/Program Files (x86)/PlayStationPlus/pspluslauncher.exe"
rockstar_path1 = f"{compat_data_path}/Program Files/Rockstar Games/Launcher/Launcher.exe"
rockstar_path2 = f"{steamuser_path}/Program Files/Rockstar Games/Launcher/Launcher.exe"
uplay_path1 = f"{compat_data_path}/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/upc.exe"
uplay_path2 = f"{steamuser_path}/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/upc.exe"
# streaming
chromedirectory = "/usr/bin/flatpak"
# Define a dictionary of original folder names
folder_names = {
'Amazon Games': 'AmazonGamesLauncher',
'Battle.net': 'Battle.netLauncher',
'DMM Games': 'DMMGameLauncher',
'EA App': 'TheEAappLauncher',
'Epic Games': 'EpicGamesLauncher',
'Gog Galaxy': 'GogGalaxyLauncher',
'Humble Bundle': 'HumbleGamesLauncher',
'IndieGala Client': 'IndieGalaLauncher',
'itch.io': 'itchioLauncher',
'Legacy Games': 'LegacyGamesLauncher',
'Minecraft: Java Edition': 'MinecraftLauncher',
'Origin': 'OriginLauncher',
'Playstation Plus': 'PlaystationPlusLauncher',
'Rockstar Games Launcher': 'RockstarGamesLauncher',
'Ubisoft Connect': 'UplayLauncher',
'VK Play': 'VKPlayLauncher',
}
# Variables from NonSteamLaunchers.sh
steamid3 = config('steamid3', default='')
logged_in_home = config('logged_in_home')
compat_tool_name = config('compat_tool_name')
controller_config_path = config('controller_config_path')
python_version = config('python_version')
#Scanner Variables
epic_games_launcher = config('epic_games_launcher')
ubisoft_connect_launcher = config('ubisoft_connect_launcher')
ea_app_launcher = config('ea_app_launcher')
gog_galaxy_launcher = config('gog_galaxy_launcher')
bnet_launcher = config('bnet_launcher')
amazon_launcher = config('amazon_launcher')
# Variables of the Launchers
# Define the path of the Launchers
epicshortcutdirectory = config('epicshortcutdirectory')
gogshortcutdirectory = config('gogshortcutdirectory')
uplayshortcutdirectory = config('uplayshortcutdirectory')
battlenetshortcutdirectory = config('battlenetshortcutdirectory')
eaappshortcutdirectory = config('eaappshortcutdirectory')
amazonshortcutdirectory = config('amazonshortcutdirectory')
itchioshortcutdirectory = config('itchioshortcutdirectory')
legacyshortcutdirectory = config('legacyshortcutdirectory')
humbleshortcutdirectory = config('humbleshortcutdirectory')
indieshortcutdirectory = config('indieshortcutdirectory')
rockstarshortcutdirectory = config('rockstarshortcutdirectory')
glyphshortcutdirectory = config('glyphshortcutdirectory')
minecraftshortcutdirectory = config('minecraftshortcutdirectory')
psplusshortcutdirectory = config('psplusshortcutdirectory')
vkplayhortcutdirectory = config('vkplayhortcutdirectory')
# Streaming
chromedirectory = config('chromedirectory')
websites_str = config('custom_websites_str')
custom_websites = websites_str.split(', ') if websites_str else []
# Define your mapping
flavor_mapping = {
"Blizzard Arcade Collection": "RTRO",
"Call of Duty: Black Ops - Cold War": "ZEUS",
"Call of Duty: Black Ops 4": "VIPR",
"Call of Duty: Modern Warfare III": "SPOT",
"Call of Duty: Modern Warfare": "ODIN",
"Call of Duty: MW 2 Campaign Remastered": "LAZR",
"Call of Duty: Vanguard": "FORE",
"Call of Duty": "AUKS",
"Crash Bandicoot 4: It's About Time": "WLBY",
"Diablo II: Resurrected": "OSI",
"Diablo III": "D3",
"Diablo Immortal (PC)": "ANBS",
"Diablo IV": "Fen",
"Diablo": "D1",
"Hearthstone": "WTCG",
"Heroes of the Storm": "Hero",
"Overwatch 2": "Pro",
"Overwatch": "Pro",
"StarCraft 2": "S2",
"StarCraft": "S1",
"Warcraft Arclight Rumble": "GRY",
"Warcraft II: Battle.net Edition": "W2",
"Warcraft III: Reforged": "W3",
"Warcraft: Orcs & Humans": "W1",
"World of Warcraft Classic": "WoWC",
"World of Warcraft": "WoW",
}