Open break-core opened 1 year ago
Big Brain Academy: Wii Degree has the same problem. (USA, RevoYawaraka_US.SMAP
)
Which character set / code page / encoding are they using for Korean? I can't remember for Korean, but some languages have some encodings which assign letters where ASCII assigns symbols.
Issue
I am trying to load the Korean version of Super Mario Galaxy (Super Mario Wii - Galaxy Adventure) into Ghidra, as well as loading in the Korean symbol map obtained from the NVIDIA Shield port of SMG. However, when loading it into Ghidra, I face the issue of having every symbol be incorrectly named.
Basically, when a function is loaded, the symbol loader will incorrectly assume that the function is some sort of namespace, and that there is a function inside of this namespace called "4". I would assume that this is because the function is incorrectly read (somehow), with the "4" to the left of the symbol being treated as the actual function rather than what is past the "4" in the actual map.
Repro
Who does this effect?
Anyone who wishes to disassemble/decompile the Korean version of Super Mario Galaxy (which is the version used in popular SMG decomp projects like Petari) with Ghidra. Because all of the symbols are messed up, it is hard to navigate around.
Update
I have found a solution to this, but it is incredibly tedious. Basically, you need to remove all of the
4
numbers in front of the symbol. I have no idea why this works, despite the fact that other symbol maps do the exact opposite but eh, I'm not complaining.