Extend file duration from 3600 to 86400

I've never wanted to say fuck Linux like this before
This commit is contained in:
tretrauit 2022-02-18 21:34:41 +07:00
parent 9a7c696a6d
commit f4e668d8b0
Signed by: tretrauit
GPG Key ID: 862760FF1903319E
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

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