From df8b3126c2346b81c2482c535768552ecc3c6940 Mon Sep 17 00:00:00 2001 From: Lila Date: Fri, 27 Sep 2024 20:44:39 +0100 Subject: [PATCH] missed extern --- fast64_internal/sm64/sm64_texscroll.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, )