Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
fireundubh committed Oct 6, 2020
2 parents f4fd061 + 198ac8c commit 7ed5509
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyro/PackageManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,20 @@ def build_commands(self, containing_folder: str, output_path: str) -> str:
arguments.append('-fo4')
elif self.options.game_type == GameType.SSE:
arguments.append('-sse')

# SSE has an ctd bug with uncompressed textures in a bsa that
# has an Embed Filenames flag on it, so force it to false.
has_textures = False

for f in glob.iglob(os.path.join(containing_folder, r'**/*'), recursive=True):
if not os.path.isfile(f):
continue
if endswith(f, '.dds', ignorecase=True):
has_textures = True
break

if has_textures:
arguments.append('-af:0x3')
else:
arguments.append('-tes5')

Expand Down

0 comments on commit 7ed5509

Please sign in to comment.