Fix syntax error on xlua patching function

This commit is contained in:
2022-02-18 21:41:50 +07:00
parent f4e668d8b0
commit ccb2d876fc
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ class Patcher:
gamever = "".join(self._installer.get_game_version().split("."))
data_name = self._installer.get_game_data_name()
xlua_path = self._gamedir.joinpath("{}/Plugins/xlua.dll".format(data_name))
xlua_path.rename(self._gamedir.joinpath("{}/Plugins/xlua.dll.bak").format(data_name))
xlua_path.rename(self._gamedir.joinpath("{}/Plugins/xlua.dll.bak".format(data_name)))
await asyncio.create_subprocess_exec("xdelta3", "-d", "-s",
str(self._gamedir.joinpath("{}/Plugins/xlua.dll.bak".format(data_name))),
str(self._patch_path.joinpath("{}/patch_files/{}".format(gamever, patch))),