Fix syntax error, bump to 1.2.1

This commit is contained in:
tretrauit 2022-02-18 20:15:29 +07:00
parent f1beaacd3b
commit 4359a43771
Signed by: tretrauit
GPG Key ID: 862760FF1903319E
3 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
aiohttp==3.8.1
appdirs~=1.4.4
aiopath~=0.6.10
worthless~=1.1.1
setuptools~=59.3.0
xdelta3~=0.0.5

View File

@ -9,7 +9,7 @@ README = (HERE / "README.md").read_text()
setup(
name='worthless',
version='1.2.0',
version='1.2.1',
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
url='https://git.froggi.es/tretrauit/worthless-launcher',
license='MIT License',

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):