fix: voicepack detection & 2.2.16
This commit is contained in:
parent
3c6d44d983
commit
d99760422d
@ -2,6 +2,8 @@
|
||||
|
||||
A worthless CLI launcher written in Python.
|
||||
|
||||
> For a nice GUI launcher you should check out [An Anime Game Launcher](https://github.com/an-anime-team/an-anime-game-launcher)
|
||||
|
||||
Check out its website at https://tretrauit.gitlab.io/worthless-launcher for more information.
|
||||
|
||||
> The current branch will enter maintenance mode, for the latest development please check `refactor` branch
|
||||
|
2
setup.py
2
setup.py
@ -10,7 +10,7 @@ README = (HERE / "README.md").read_text()
|
||||
|
||||
setup(
|
||||
name='worthless',
|
||||
version='2.2.15',
|
||||
version='2.2.16',
|
||||
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
|
||||
url='https://git.froggi.es/tretrauit/worthless-launcher',
|
||||
license='MIT License',
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user