Add support for hdiffpatch files

Game now apply update properly (hopefully)

Signed-off-by: tretrauit <tretrauit@gmail.com>
This commit is contained in:
2022-03-31 02:09:33 +07:00
parent c7918f8a20
commit fd00e8b51d
6 changed files with 116 additions and 10 deletions

View File

@ -59,11 +59,13 @@ class UI:
print("Reverting patches if patched...")
self._patcher.revert_patch(True)
print("Updating game from archive (this may takes some time)...")
self._installer.update_game(filepath)
asyncio.run(self._installer.update_game(filepath))
self._installer.set_version_config()
def _install_from_archive(self, filepath, force_reinstall):
print("Installing game from archive (this may takes some time)...")
self._installer.install_game(filepath, force_reinstall)
self._installer.set_version_config()
def _apply_voiceover_from_archive(self, filepath):
print("Applying voiceover from archive (this may takes some time)...")
@ -311,6 +313,9 @@ def main():
if args.install:
ui.install_game()
if args.update_all:
raise NotImplementedError() # TODO
if args.update:
ui.update_game_voiceover(args.update)