Emulator Issues #8965
Preservation of SD Cards (Offline/Online)
Brawl, Mario Kart Wii, ProjectM, Hombrew Apps
Game ID? (right click the game in the game list, properties, info tab)
RSBE01, RMCE01, (Currently RSBEF2), N/A
What's the problem? Describe what went wrong.
Overwriting of SD cards (during emulation) cause issues over periods of time when it comes to the stability/integrity of sd cards (both on console and on dolphin) for both offline, and online/netplay. When emulation starts, dolphin will continue to modify the SD card no matter the circumstance. Normally on a wii, you cannot have the sd card set to read only, but when you force a read only state in dolphin (as seen in build 4.0-7490) where the sd card does not become modified.
With 4.0-7490, they added the the functionality of blocking of modifying the sd cards on the netplay branch/window, but if the game were played offline, just once, the sd card becomes modified and will instantly desync when used for netplay.
Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?
4.0-7490 and later
Is there any other relevant information? Screenshots? Logs? Fifologs?
I am proposing something of this magnitude: http://prntscr.com/8haee8
A simple toggle that will allow a read only state on the sd card that covers both offline and online sd card states. This will prevent writing to the sd card during the emulation, preserving the sd card to its original state at the end of any emulation.
#8 Updated by ryanebola16 4 months ago
I finally got around to looking into this and there does seem to be an issue with writing to the SD card with mods. I'm not sure if this is the mod's, Dolphin's, or WinImage's issue though.
With Brawl, the File Patch Code (FPC, tested on Dolphin 5.0-9475 with FPC versions 3.5.1 and 3.5.1b) seems to write to the SD card when certain files are involved. I isolated one of those files (StrapEn.pac) and put it in the attached SD.raw files. StrapEn.pac contains a custom Wiimote strap screen. The only code included in the /codes folder is FPC 3.5.1b. If I remember correctly, Mario Kart Wii uses a very similar code for mods.
Steps to reproduce:
1. Extract sd.raw. Place one copy in the appropriate location for Dolphin and another copy elsewhere for comparison.
2. Enable the SD card in Dolphin if not enabled.
3. Set Brawl as your default ISO.
4. Launch Gecko OS or Minima Launcher and proceed to play Brawl until you see the custom strap screen.
5. Exit emulation.
6. Compare the copy of sd.raw to the one in the appropriate location and observe a difference between the two files. The timestamps are also different.
Oddly, when I try to extract and compare both the original and "modified" StrapEn.pac files, they are identical. I don't know if this is WinImage being weird. Regardless, something isn't right here. Let me know if you want me to make this a separate issue.
#9 Updated by ryanebola16 4 months ago
I tested this on a real Wii. The files from the attached SD.raw are identical after loading the strap screen with FPC enabled. Also, the WinImage StrapEn.pac extraction occurred after comparing the SD.raws in HxD. I suspect the difference in SD.raw is a Dolphin bug.