From ccb2d876fc98639c0f226517937e21956ce4967c Mon Sep 17 00:00:00 2001 From: tretrauit Date: Fri, 18 Feb 2022 21:41:50 +0700 Subject: [PATCH] Fix syntax error on xlua patching function --- setup.py | 2 +- worthless/patcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 438d45f..5e0b0cb 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ README = (HERE / "README.md").read_text() setup( name='worthless', - version='1.2.5', + version='1.2.6', 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 fcca697..e750113 100644 --- a/worthless/patcher.py +++ b/worthless/patcher.py @@ -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))),