From 1ab14db55442afdc4e59cbda214eb1c92ac41824 Mon Sep 17 00:00:00 2001 From: G C <37224614+Hdt80bro@users.noreply.github.com> Date: Mon, 17 Nov 2025 22:18:10 -0800 Subject: [PATCH] Generate method symbols properly --- patcher/Patcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patcher/Patcher.py b/patcher/Patcher.py index 563bf15..b5ca68f 100644 --- a/patcher/Patcher.py +++ b/patcher/Patcher.py @@ -153,7 +153,7 @@ def parse_sect_map(file_path: Path) -> dict[str, str]: line = f.readline() while not line.startswith(" *(.data*)"): - items = SPACES_RE.sub(" ", line.strip()).split("(")[0].split(" ") + items = SPACES_RE.sub(" ", line.strip().replace("::", "__")).split("(")[0].split(" ") if len(items) != 2 or items[1].startswith("?"): line = f.readline() continue @@ -170,7 +170,7 @@ def parse_sect_map(file_path: Path) -> dict[str, str]: line = f.readline() while not line.startswith(" *(.bss*)"): - items = SPACES_RE.sub(" ", line.strip()).split(" ") + items = SPACES_RE.sub(" ", line.strip().replace("::", "__")).split(" ") if len(items) != 2 or items[1].startswith("?"): line = f.readline() continue @@ -187,7 +187,7 @@ def parse_sect_map(file_path: Path) -> dict[str, str]: line = f.readline() while not line.startswith(" *(.rdata)"): - items = SPACES_RE.sub(" ", line.strip()).split(" ") + items = SPACES_RE.sub(" ", line.strip().replace("::", "__")).split(" ") if len(items) != 2 or items[1].startswith("?"): line = f.readline() continue