mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-05 12:18:21 +02:00
fixed MyStuff patcher looking for files at the harddrive root
This commit is contained in:
parent
f519bbd554
commit
70e324c03a
1 changed files with 2 additions and 2 deletions
|
@ -56,9 +56,9 @@ class ExtractedGame:
|
||||||
mystuff_rootfiles: dict[str, Path] = {}
|
mystuff_rootfiles: dict[str, Path] = {}
|
||||||
for mystuff_subpath in mystuff_path.glob("*"):
|
for mystuff_subpath in mystuff_path.glob("*"):
|
||||||
if mystuff_subpath.is_file(): mystuff_rootfiles[mystuff_subpath.name] = mystuff_subpath
|
if mystuff_subpath.is_file(): mystuff_rootfiles[mystuff_subpath.name] = mystuff_subpath
|
||||||
else: shutil.copytree(mystuff_subpath, self.path / f"/files/{mystuff_subpath.name}", dirs_exist_ok=True)
|
else: shutil.copytree(mystuff_subpath, self.path / f"files/{mystuff_subpath.name}", dirs_exist_ok=True)
|
||||||
|
|
||||||
for game_file in filter(lambda file: file.is_file(), (self.path / "/files/").rglob("*")):
|
for game_file in filter(lambda file: file.is_file(), (self.path / "files/").rglob("*")):
|
||||||
if (mystuff_file := mystuff_rootfiles.get(game_file.name)) is None: continue
|
if (mystuff_file := mystuff_rootfiles.get(game_file.name)) is None: continue
|
||||||
shutil.copy(mystuff_file, game_file)
|
shutil.copy(mystuff_file, game_file)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue