Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiiRoot: Copy initial NAND files with proper metadata #6832

Merged
merged 4 commits into from May 12, 2018

Conversation

leoetlino
Copy link
Member

This PR cleans up the initial NAND file copy code, moves it to WiiRoot (to unify it with the temporary NAND init code) and makes sure the files and directories are created with the proper metadata (last commit).

And while I was at it, I added a comment explaining why exactly it is required to copy the dummy NWC24 files to the NAND.

{Initialize,Shutdown}WiiRoot should only be responsible for setting the
SESSION_WII_ROOT or managing the temporary NAND directory.

Move all the content manipulation out of these functions to ensure
separation of concerns and call them after/before WiiRoot init/shutdown
to make sure they operate on the correct root.
Dolphin doesn't use any of the WC24 files, so this can be done when
actually starting emulation in WiiRoot. The benefit of moving the
copy is that we don't need to handle temporary NANDs in a special way.
These are created by the ECDK library (used in the Wii Shop Channel
for example) on first use. There's no need to provide dummy files.
@lioncash lioncash merged commit a4de392 into dolphin-emu:master May 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants