diff --git a/tools/ghidra_scripts/DecompMapToGhidra.py b/tools/ghidra_scripts/DecompMapToGhidra.py index 2ad0074b..0484abb9 100644 --- a/tools/ghidra_scripts/DecompMapToGhidra.py +++ b/tools/ghidra_scripts/DecompMapToGhidra.py @@ -89,7 +89,9 @@ def do_demangle(name): if "__" in name: try: output = demangle.demangle_try(name) - return output.strip() + output = output.strip() + if output != name: + return output except Exception: pass # otherwise we try to undo the effects of the original