Skip to content

Commit

Permalink
make the regex allow even more whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Sep 18, 2024
1 parent 8e1c359 commit 26159b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fast64_internal/sm64/sm64_f3d_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def exportTexRectToC(dirPath, texProp, texDir, savePNG, name, exportToProject, p

# Append/Overwrite texture definition to segment2.c
overwriteData(
f"(Gfx\s*{fImage.aligner_name}\[\]\s*=\s*{{gsSPEndDisplayList\(\)}};\s*)?u{str(formater.texArrayBitSize)}\s*",
rf"(Gfx\s+{fImage.aligner_name}\s*\[\s*\]\s*=\s*\{{\s*gsSPEndDisplayList\s*\(\s*\)\s*\}}\s*;\s*)?"
rf"u{str(formater.texArrayBitSize)}\s*",
fImage.name,
data.source,
seg2CPath,
Expand Down

0 comments on commit 26159b6

Please sign in to comment.