diff --git a/setup.py b/setup.py index f45f8be..438d45f 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ README = (HERE / "README.md").read_text() setup( name='worthless', - version='1.2.4', + version='1.2.5', 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 c5fe025..fcca697 100644 --- a/worthless/patcher.py +++ b/worthless/patcher.py @@ -189,7 +189,7 @@ class Patcher: original_path = self._gamedir.joinpath(original_file + ".bak").resolve() target_file = self._gamedir.joinpath(original_file).resolve() if original_path.exists(): - if abs(self._creation_date(base_file) - self._creation_date(original_path)) > 3600: + if abs(self._creation_date(base_file) - self._creation_date(original_path)) > 86400: # 24 hours if not ignore_error: raise RuntimeError("{} is not for this game version.".format(original_path.name)) original_path.unlink(missing_ok=True)