From 4359a437718a552fd1817d24ef92b4d8d8fb2ca8 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Fri, 18 Feb 2022 20:15:29 +0700 Subject: [PATCH] Fix syntax error, bump to 1.2.1 --- requirements.txt | 1 - setup.py | 2 +- worthless/patcher.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8846e8f..c3a5a2a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file diff --git a/setup.py b/setup.py index 9cdef45..75bc110 100644 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/worthless/patcher.py b/worthless/patcher.py index 9eefb34..1b22bb6 100644 --- a/worthless/patcher.py +++ b/worthless/patcher.py @@ -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):