Skip to content

Support "wb" mode for opening files#35

Merged
Maschell merged 1 commit into
wiiu-env:mainfrom
neoninteger:fix/wb-mode
Nov 17, 2023
Merged

Support "wb" mode for opening files#35
Maschell merged 1 commit into
wiiu-env:mainfrom
neoninteger:fix/wb-mode

Conversation

@Maschell
Copy link
Copy Markdown
Contributor

@Maschell Maschell commented Oct 6, 2023

by @neoninteger:

Hachihachi (the Nintendo DS emulator used in Virtual Console) crashes when its save data is redirected to the SD card. It tries to open the save-state files in "wb" mode which is currently rejected by the ContentRedirectionModule. This causes the emulator's `SAVEOpenFile()` call to fail, and the emulator immediately panics.

I am operating under the assumption that the Wii U's I/O system doesn't differentiate between text and binary modes, like most other operating systems. This is evidenced by the fact that the module already supports "rb" mode and treats it in the same way as "r".

Hachihachi (the Nintendo DS emulator used in Virtual Console) crashes
when its save data is redirected to the SD card. It tries to open the
save-state files in "wb" mode which is currently rejected by the
ContentRedirectionModule. This causes the emulator's `SAVEOpenFile()`
call to fail, and the emulator immediately panics.

I am operating under the assumption that the Wii U's I/O system
doesn't differentiate between text and binary modes, like most other
operating systems. This is evidenced by the fact that the module
already supports "rb" mode and treats it in the same way as "r".
@Maschell Maschell merged commit 0df67fc into wiiu-env:main Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants