-
Notifications
You must be signed in to change notification settings - Fork 1
/
launch_game.py
30 lines (21 loc) · 1.21 KB
/
launch_game.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
import subprocess
import game_sync
from utils import plural
def main():
mods_input = input("\n: ")
mods = set(mods_input.split()) | {'TASRecorder', 'InputHistory'}
replacements = {'sj': 'StrawberryJam2021', 'ssc2': 'SecretSanta2023', 'sc': 'SpringCollab2020', 'wc': 'WinterCollab2021', 'itj': 'Into The Jungle', 'dsides': 'Monika\'s D-Sides',
'flp': 'The Frogeline Project', 'mwc': 'MidwayContest2022', 'flcc': 'FLCCcollab', 'egc': 'EGCPACK', 'dmr': 'darkmoonruins', 'ac': 'AnarchyCollab2022', 'ssc3': 'SecretSantaCollab2024'}
for replacement in replacements:
if replacement in mods:
mods.remove(replacement)
mods.add(replacements[replacement])
print(f"{replacement} -> {replacements[replacement]}")
for mod in mods:
mods = mods.union(game_sync.get_mod_dependencies(mod))
game_sync.generate_blacklist(mods)
print(f"Created blacklist, launching game with {len(mods)} mod{plural(mods)}")
# subprocess.Popen('mons mods update itch --enabled --yes')
subprocess.Popen(r'G:\celeste\Celeste.exe', creationflags=0x00000010) # the creationflag is for not waiting until the process exits
if __name__ == '__main__':
main()