Add support for hdiffpatch files
Game now apply update properly (hopefully) Signed-off-by: tretrauit <tretrauit@gmail.com>
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user