fix: voicepack detection & 2.2.16
This commit is contained in:
@ -4,4 +4,4 @@ Launcher = launcher.Launcher
|
||||
Installer = installer.Installer
|
||||
|
||||
|
||||
__version__ = "2.2.15"
|
||||
__version__ = "2.2.16"
|
||||
|
||||
@ -117,6 +117,7 @@ class HDiffPatch:
|
||||
return self._get_hdiffpatch_exec(hpatchz_name)
|
||||
|
||||
async def patch_file(self, in_file, out_file, patch_file, error=False, wait=False):
|
||||
print("executing hpatchz")
|
||||
hpatchz = self.get_hpatchz_executable()
|
||||
if not hpatchz:
|
||||
raise RuntimeError("hpatchz executable not found")
|
||||
@ -321,7 +322,7 @@ class Installer:
|
||||
"""
|
||||
voiceovers = []
|
||||
async for file in self.get_game_data_path()\
|
||||
.joinpath("StreamingAssets/Audio/GeneratedSoundBanks/Windows").iterdir():
|
||||
.joinpath("StreamingAssets/AudioAssets/").iterdir():
|
||||
if await file.is_dir():
|
||||
voiceovers.append(file.name)
|
||||
return voiceovers
|
||||
@ -354,6 +355,7 @@ class Installer:
|
||||
for file in hdifffiles:
|
||||
current_game_file = self._gamedir.joinpath(file)
|
||||
if not await current_game_file.exists():
|
||||
print("File", file, "not found")
|
||||
# Not patching since we don't have the file
|
||||
continue
|
||||
|
||||
@ -385,6 +387,7 @@ class Installer:
|
||||
files.remove(patch_file)
|
||||
# Limit to 8 process running so it doesn't hang the PC.
|
||||
if count == 7:
|
||||
print("add job")
|
||||
patch_jobs.append(cur_jobs)
|
||||
cur_jobs = []
|
||||
count = 0
|
||||
@ -394,6 +397,7 @@ class Installer:
|
||||
# The last list may have count < 7 and the above code will not add them
|
||||
patch_jobs.append(cur_jobs)
|
||||
for jobs in patch_jobs:
|
||||
print("exec jobs", jobs)
|
||||
await asyncio.gather(*jobs)
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user