Added voiceover language info & archive type and install_game function

Available through Installer.get_voiceover_archive_type and Installer.get_voiceover_archive_language
Also some other optimizations including not extracting unneeded files from diff archive, deprecate _read_version_from_config function, and added install_game, uninstall_game, voiceover_lang_translate, get_installed_voiceovers
This commit is contained in:
2022-02-17 22:02:08 +07:00
parent b1a9223c19
commit ef24ad43ca
4 changed files with 160 additions and 57 deletions

View File

@ -127,8 +127,8 @@ class Patcher:
]
for file in revert_files:
self._revert_file(file, game_exec, ignore_errors)
self._gamedir.joinpath("launcher.bat").unlink(missing_ok=True)
self._gamedir.joinpath("mhyprot2_running.reg").unlink(missing_ok=True)
for file in ["launcher.bat", "mhyprot2_running.reg"]:
self._gamedir.joinpath(file).unlink(missing_ok=True)
def get_files(extensions):
all_files = []