From f4e668d8b06eb2c7aabd668502b973b69b736741 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Fri, 18 Feb 2022 21:34:41 +0700 Subject: [PATCH] Extend file duration from 3600 to 86400 I've never wanted to say fuck Linux like this before --- setup.py | 2 +- worthless/patcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)