r/DolphinEmulator • u/starlightbotanist • 13h ago
Discussion Super Mario Galaxy 1 and 2 classic controller patch codes
Hello,
I wanted to share that I have ported SuperHackio's classic controller patches from Riivolution patches to patch codes.
The main reason I did this is because the use of the Riivolution patches (or hard patching the iso) will not allow you to use Retro Achievements for SMG and SMG2. These patch codes aren't whitelisted, so they won't work with hardcore retroachievements, but they do work with casual achievements. (getting them whitelisted would be great, plus them being in dolphin already would save people the time of adding them).
Another benefit of this method is it's (at least subjectively) more convenient than Riivolution or hard patching.
The original codes, and the mapping images are not my work and were released by SuperHackio on youtube in 2022. I simply converted them. I did use an LLM to assist with the conversion, but only for the sake of saving my time (there are a lot of codes here due to their being so many regions and these codes are LONG). This should be a 1 to 1 conversion, and if anyone finds an error, please let me know and I will correct it.
To use these patch codes, head to the github link, and in the readme select your game version and mapping type, then follow the directions for adding it to dolphin. Only add Nvidia OR Allstars mapping, not both. If you want to swap L and ZL and/or R and ZR, add that as separate patch after the Nvidia or Allstars patch.
Known Issues:
The cursor does not auto-hide when using these patches. This behavior is inherited from the original patches by SuperHackio. I tried to dig into things and find a fix, but it's honestly above my head. If someone submitted a PR with a fix, I would happily merge it (or if they want to do their own patches that fix this issue, I will mark these as depreciated and link to the new patches). Despite this, it doesn't feel like a big issue. I just push the cursor to the top of the screen when not in use.
Only SMG NTSC, SMG PAL, SMG2 NTSC, and SMG2 PAL have been tested, as I don't have copies of the other versions. Please let me know if there is an issue with any of the untested codes.
https://github.com/Starlightbotanist/SMG-SMG2ClassicControllerDolphinPatches
EDIT: Fixed a few broken links in the github readme