Emulator Issues #11995
Dolphin cannot parse .map files from Nvidia Shield releases
Super Mario Galaxy
Game ID? (right click the game in the game list, Properties, Info tab)
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
What's the problem? Describe what went wrong.
All of the Chinese-exclusive Nvidia Shield releases of Wii games (except New Super Mario Bros. Wii) include .map files for Japan, Korea, and China (labeled as US), even if the original releases did not. One for the Japanese release of Super Mario Galaxy is at https://gist.github.com/leo60228/ee9ac30198703e7a418ad0f1adeca883. Dolphin has difficulty parsing these files. For example, the added field before the symbol name, which is always " 4" or "64" (alignment?) is included in the symbol name. Even when this is removed, about 90% of symbols include substrings of the address in their names, with no clear pattern.
What steps will reproduce the problem?
- Download https://gist.github.com/leo60228/ee9ac30198703e7a418ad0f1adeca883
- Launch Japanese Super Mario Galaxy
- Load above symbol map
- Scroll through symbol list
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
I'm on Linux, so I can't use official binaries. https://github.com/leo60228/dolphin/tree/dev-dolphin-change-disc experiences this problem.
Is the issue present in the latest stable version?
If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
What are your PC specifications? (CPU, GPU, Operating System, more)
- CPU: Ryzen 5 3600
- GPU: RX 5700 (Mesa 20.0.0, ACO shader compiler)
- OS: NixOS unstable
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
You can enable the debugger UI in Options > Configuration, then click on the Interface tab and tick "Show Debugging UI".
This map can be loaded properly if you add under the .text line:
Starting Virtual File address Size address offset ---------------------------------
The current heuristic to detect the symbol map file format is the issue here.
Does the other map files you have look like that (i.e. the column header seems missing) or is it the only one like this.