Ignore PI_RESET_CODE resetting DI in Wii mode #9060
Merged
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Fixes bug 12241. I did a quick hardware test, and it doesn't seem like writes to it actually do anything in Wii mode; IOS reads still return normally and the drive didn't make any noises that sound like it was reset (unlike when resetting it through IOS). I'm guessing Project M's write to it is just a leftover.
I did notice a different oddity, though: even though I always wrote with bit 1 set, reading back never had bit 1 set. Also, bit 2 was set by the time HBC loaded my code. That should be investigated further (along with behavior in GameCube compatibility mode, and behavior on actual GameCubes). So, there's probably further behavior that could be emulated, but this still seems to be accurate.
I've tested and confirmed that this does not interfere with actually changing discs for GameCube games; they still properly detect the disc change and spin it up again. This includes when launched from the Wii menu (since
bWiiis set to false by the current MIOS implementation).