Skip to content

Commit 48d55aa

Browse files
Update pak file naming to include parent directory name
1 parent 966aeb6 commit 48d55aa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

games/baldursgate3/pak_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ def _get_metadata_for_file(
154154
f"pak with same name as packable dir exists in mod directory. not packing dir {file}"
155155
)
156156
return ""
157-
pak_path = self._utils.overwrite_path / f"Mods/{file.name}.pak"
157+
parent_mod_name = file.parent.name.replace(" ", "_")
158+
pak_path = self._utils.overwrite_path / f"Mods/{parent_mod_name}_{file.name}.pak"
158159
build_pak = True
159160
if pak_path.exists():
160161
pak_creation_time = os.path.getmtime(pak_path)

0 commit comments

Comments
 (0)