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