IOS: Allow instances that are not tied to emulation

This enables constructing an IOS instance that is not tied to emulation
and that can be simply used for internal purposes (ES, FS).

NAND root initialisation was moved to IOS since we cannot rely on HW
doing that for us anymore, and technically the NAND is entirely managed
by IOS anyway.
This commit is contained in:
Léo Lam
2017-05-07 17:58:26 +02:00
parent f4e115b322
commit 12801fd722
5 changed files with 92 additions and 38 deletions

View File

@ -24,7 +24,6 @@
#include "Core/IOS/IOS.h"
#include "Core/Movie.h"
#include "Core/State.h"
#include "Core/WiiRoot.h"
namespace HW
{
@ -50,7 +49,6 @@ void Init()
if (SConfig::GetInstance().bWii)
{
Core::InitializeWiiRoot(Core::WantsDeterminism());
IOS::Init();
IOS::HLE::Init(); // Depends on Memory
}
@ -61,8 +59,6 @@ void Shutdown()
// IOS should always be shut down regardless of bWii because it can be running in GC mode (MIOS).
IOS::HLE::Shutdown(); // Depends on Memory
IOS::Shutdown();
if (SConfig::GetInstance().bWii)
Core::ShutdownWiiRoot();
SystemTimers::Shutdown();
CPU::Shutdown();