Extend file duration from 3600 to 86400
I've never wanted to say fuck Linux like this before
This commit is contained in:
parent
9a7c696a6d
commit
f4e668d8b0
2
setup.py
2
setup.py
@ -9,7 +9,7 @@ README = (HERE / "README.md").read_text()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='worthless',
|
name='worthless',
|
||||||
version='1.2.4',
|
version='1.2.5',
|
||||||
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
|
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
|
||||||
url='https://git.froggi.es/tretrauit/worthless-launcher',
|
url='https://git.froggi.es/tretrauit/worthless-launcher',
|
||||||
license='MIT License',
|
license='MIT License',
|
||||||
|
@ -189,7 +189,7 @@ class Patcher:
|
|||||||
original_path = self._gamedir.joinpath(original_file + ".bak").resolve()
|
original_path = self._gamedir.joinpath(original_file + ".bak").resolve()
|
||||||
target_file = self._gamedir.joinpath(original_file).resolve()
|
target_file = self._gamedir.joinpath(original_file).resolve()
|
||||||
if original_path.exists():
|
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:
|
if not ignore_error:
|
||||||
raise RuntimeError("{} is not for this game version.".format(original_path.name))
|
raise RuntimeError("{} is not for this game version.".format(original_path.name))
|
||||||
original_path.unlink(missing_ok=True)
|
original_path.unlink(missing_ok=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user