Skip to content

Commit 8218050

Browse files
committed
Improved startup speed. Fixed some errors with launcher reinstalling. Fixed alternative unlocking. Fixed incorrected hash validation.
1 parent 8effc73 commit 8218050

File tree

4 files changed

+239
-168
lines changed

4 files changed

+239
-168
lines changed

Libs/CreamApiMaker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_dlc_list(self, app_id, errors=0):
7373
def run(self):
7474
print('Cream api creating...')
7575
dlc_list = self.get_dlc_list(281990)
76-
print(dlc_list)
76+
print(f"DLC list for Cream api {dlc_list}")
7777
if dlc_list:
7878
self.check_and_update_dlc_list(dlc_list,
7979
os.path.join(self.parent_directory, 'creamapi_steam_files', 'cream_api.ini'))

Libs/LauncherReinstall.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def extract_version(filename):
4141
msi_files = glob(os.path.join(self.msi_path, "launcher-installer-windows_*.msi"))
4242
if self.launcher_downloaded:
4343
print('Alt unlock. Deleting all other launches')
44+
msi_files = glob(os.path.join(self.msi_path, "launcher-installer-windows*.msi"))
4445
try:
4546
for file_path in msi_files:
4647
try:

Libs/MD5Check.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,14 @@ def check_files(self):
4343
for relative_path, server_hash in self.server_hashes.items():
4444
local_path = os.path.join(self.game_path, relative_path)
4545

46-
if os.path.isfile(local_path):
47-
local_hash = self.calculate_md5(local_path)
48-
if local_hash != server_hash:
46+
if os.path.isdir(local_path.split('/', 1)[0]):
47+
if os.path.isfile(local_path):
48+
local_hash = self.calculate_md5(local_path)
49+
if local_hash != server_hash:
50+
folder = os.path.dirname(relative_path)
51+
if folder not in mismatched_folders:
52+
mismatched_folders.append(folder)
53+
else:
4954
folder = os.path.dirname(relative_path)
5055
if folder not in mismatched_folders:
5156
mismatched_folders.append(folder)

0 commit comments

Comments
 (0)