diff --git a/fast64_internal/sm64/sm64_texscroll.py b/fast64_internal/sm64/sm64_texscroll.py index ad7836de5..01d4d83b8 100644 --- a/fast64_internal/sm64/sm64_texscroll.py +++ b/fast64_internal/sm64/sm64_texscroll.py @@ -81,7 +81,11 @@ def writeSegmentROMTable(baseDir): # Add extern definition of segment table write_or_delete_if_found( Path(baseDir) / "src/game/memory.h", - [ModifyFoundDescriptor("uintptr_t sSegmentROMTable[32];", r"uintptr_t\h*sSegmentROMTable\[.*?\]\h?;")], + [ + ModifyFoundDescriptor( + "extern uintptr_t sSegmentROMTable[32];", r"extern\h*uintptr_t\h*sSegmentROMTable\[.*?\]\h?;" + ) + ], path_must_exist=True, footer=END_IF_FOOTER, )