Fix syntax error, bump to 1.2.1

This commit is contained in:
2022-02-18 20:15:29 +07:00
parent f1beaacd3b
commit 4359a43771
3 changed files with 2 additions and 3 deletions

View File

@ -112,7 +112,7 @@ class Patcher:
patch_bytes = self._patch_path.joinpath("{}/patch_files/{}".format(gamever, patch)).read_bytes()
patched_xlua_bytes = xdelta3.decode(xlua_path.read_bytes(), patch_bytes)
xlua_path.rename(self._gamedir.joinpath("xlua.dll.bak"))
with Path(self._gamedir.joinpath("{}/Plugins/xlua.dll".format(data_name)).open("wb") as f:
with Path(self._gamedir.joinpath("{}/Plugins/xlua.dll".format(data_name))).open("wb") as f:
f.write(patched_xlua_bytes)
def apply_xlua_patch(self):