updater: fix deleting the game root directory lmao
This commit is contained in:
@ -387,6 +387,8 @@ class Installer:
|
||||
deletefiles = archive.read("deletefiles.txt").decode().split("\n")
|
||||
for file in deletefiles:
|
||||
current_game_file = Path(self._gamedir.joinpath(file))
|
||||
if current_game_file == self._gamedir:
|
||||
continue
|
||||
if not current_game_file.exists():
|
||||
continue
|
||||
if current_game_file.is_file():
|
||||
|
||||
Reference in New Issue
Block a user