Extend file duration from 3600 to 86400
I've never wanted to say fuck Linux like this before
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user