Boot: Install WADs temporarily

Because the Wii NAND size is finite, mark titles that were installed
only for booting as temporary, and remove them whenever we need to
install another title (to make room). This is exactly what the
System Menu does for temporary SD card title data.
This commit is contained in:
Léo Lam
2017-10-03 16:07:28 +02:00
parent 4b4a9a6486
commit dedb61e5bf
3 changed files with 39 additions and 9 deletions

View File

@ -27,8 +27,15 @@ class Kernel;
namespace WiiUtils
{
bool InstallWAD(IOS::HLE::Kernel& ios, const DiscIO::WiiWAD& wad);
// Same as the above, but constructs a temporary IOS and WiiWAD instance for importing.
enum class InstallType
{
Permanent,
Temporary,
};
bool InstallWAD(IOS::HLE::Kernel& ios, const DiscIO::WiiWAD& wad, InstallType type);
// Same as the above, but constructs a temporary IOS and WiiWAD instance for importing
// and does a permanent install.
bool InstallWAD(const std::string& wad_path);
enum class UpdateResult