Add a way to check the NAND for issues and fix them

Old versions of Dolphin are so broken regarding NAND handling that
we need this to repair common issues and avoid issues with titles
like the System Menu or the Wii Shop.

This isn't an exhaustive check, but this will catch most issues
and offer to fix them automatically (if possible).
This commit is contained in:
Léo Lam
2017-10-03 16:45:59 +02:00
parent 2974c56e50
commit 239167245d
8 changed files with 164 additions and 2 deletions

View File

@ -12,6 +12,14 @@
// Small utility functions for common Wii related tasks.
namespace IOS
{
namespace HLE
{
class Kernel;
}
}
namespace WiiUtils
{
bool InstallWAD(const std::string& wad_path);
@ -48,4 +56,8 @@ UpdateResult DoOnlineUpdate(UpdateCallback update_callback, const std::string& r
// Perform a disc update with behaviour similar to the System Menu.
UpdateResult DoDiscUpdate(UpdateCallback update_callback, const std::string& image_path);
// Check the emulated NAND for common issues.
bool CheckNAND(IOS::HLE::Kernel& ios);
bool RepairNAND(IOS::HLE::Kernel& ios);
}