mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Reformat all the things. Have fun with merge conflicts.
This commit is contained in:
@ -9,7 +9,6 @@
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/State.h"
|
||||
#include "Core/HW/AudioInterface.h"
|
||||
#include "Core/HW/CPU.h"
|
||||
#include "Core/HW/DSP.h"
|
||||
@ -24,91 +23,92 @@
|
||||
#include "Core/HW/VideoInterface.h"
|
||||
#include "Core/HW/WII_IPC.h"
|
||||
#include "Core/IPC_HLE/WII_IPC_HLE.h"
|
||||
#include "Core/State.h"
|
||||
#include "DiscIO/NANDContentLoader.h"
|
||||
|
||||
namespace HW
|
||||
{
|
||||
void Init()
|
||||
{
|
||||
CoreTiming::Init();
|
||||
SystemTimers::PreInit();
|
||||
void Init()
|
||||
{
|
||||
CoreTiming::Init();
|
||||
SystemTimers::PreInit();
|
||||
|
||||
State::Init();
|
||||
State::Init();
|
||||
|
||||
// Init the whole Hardware
|
||||
AudioInterface::Init();
|
||||
VideoInterface::Init();
|
||||
SerialInterface::Init();
|
||||
ProcessorInterface::Init();
|
||||
ExpansionInterface::Init(); // Needs to be initialized before Memory
|
||||
Memory::Init();
|
||||
DSP::Init(SConfig::GetInstance().bDSPHLE);
|
||||
DVDInterface::Init();
|
||||
GPFifo::Init();
|
||||
CPU::Init(SConfig::GetInstance().iCPUCore);
|
||||
SystemTimers::Init();
|
||||
// Init the whole Hardware
|
||||
AudioInterface::Init();
|
||||
VideoInterface::Init();
|
||||
SerialInterface::Init();
|
||||
ProcessorInterface::Init();
|
||||
ExpansionInterface::Init(); // Needs to be initialized before Memory
|
||||
Memory::Init();
|
||||
DSP::Init(SConfig::GetInstance().bDSPHLE);
|
||||
DVDInterface::Init();
|
||||
GPFifo::Init();
|
||||
CPU::Init(SConfig::GetInstance().iCPUCore);
|
||||
SystemTimers::Init();
|
||||
|
||||
if (SConfig::GetInstance().bWii)
|
||||
{
|
||||
Common::InitializeWiiRoot(Core::g_want_determinism);
|
||||
DiscIO::cUIDsys::AccessInstance().UpdateLocation();
|
||||
DiscIO::CSharedContent::AccessInstance().UpdateLocation();
|
||||
WII_IPCInterface::Init();
|
||||
WII_IPC_HLE_Interface::Init(); // Depends on Memory
|
||||
}
|
||||
}
|
||||
|
||||
void Shutdown()
|
||||
{
|
||||
if (SConfig::GetInstance().bWii)
|
||||
{
|
||||
WII_IPC_HLE_Interface::Shutdown(); // Depends on Memory
|
||||
WII_IPCInterface::Shutdown();
|
||||
Common::ShutdownWiiRoot();
|
||||
}
|
||||
|
||||
SystemTimers::Shutdown();
|
||||
CPU::Shutdown();
|
||||
DVDInterface::Shutdown();
|
||||
DSP::Shutdown();
|
||||
Memory::Shutdown();
|
||||
ExpansionInterface::Shutdown();
|
||||
SerialInterface::Shutdown();
|
||||
AudioInterface::Shutdown();
|
||||
|
||||
State::Shutdown();
|
||||
CoreTiming::Shutdown();
|
||||
}
|
||||
|
||||
void DoState(PointerWrap &p)
|
||||
{
|
||||
Memory::DoState(p);
|
||||
p.DoMarker("Memory");
|
||||
VideoInterface::DoState(p);
|
||||
p.DoMarker("VideoInterface");
|
||||
SerialInterface::DoState(p);
|
||||
p.DoMarker("SerialInterface");
|
||||
ProcessorInterface::DoState(p);
|
||||
p.DoMarker("ProcessorInterface");
|
||||
DSP::DoState(p);
|
||||
p.DoMarker("DSP");
|
||||
DVDInterface::DoState(p);
|
||||
p.DoMarker("DVDInterface");
|
||||
GPFifo::DoState(p);
|
||||
p.DoMarker("GPFifo");
|
||||
ExpansionInterface::DoState(p);
|
||||
p.DoMarker("ExpansionInterface");
|
||||
AudioInterface::DoState(p);
|
||||
p.DoMarker("AudioInterface");
|
||||
|
||||
if (SConfig::GetInstance().bWii)
|
||||
{
|
||||
WII_IPCInterface::DoState(p);
|
||||
p.DoMarker("WII_IPCInterface");
|
||||
WII_IPC_HLE_Interface::DoState(p);
|
||||
p.DoMarker("WII_IPC_HLE_Interface");
|
||||
}
|
||||
|
||||
p.DoMarker("WIIHW");
|
||||
}
|
||||
if (SConfig::GetInstance().bWii)
|
||||
{
|
||||
Common::InitializeWiiRoot(Core::g_want_determinism);
|
||||
DiscIO::cUIDsys::AccessInstance().UpdateLocation();
|
||||
DiscIO::CSharedContent::AccessInstance().UpdateLocation();
|
||||
WII_IPCInterface::Init();
|
||||
WII_IPC_HLE_Interface::Init(); // Depends on Memory
|
||||
}
|
||||
}
|
||||
|
||||
void Shutdown()
|
||||
{
|
||||
if (SConfig::GetInstance().bWii)
|
||||
{
|
||||
WII_IPC_HLE_Interface::Shutdown(); // Depends on Memory
|
||||
WII_IPCInterface::Shutdown();
|
||||
Common::ShutdownWiiRoot();
|
||||
}
|
||||
|
||||
SystemTimers::Shutdown();
|
||||
CPU::Shutdown();
|
||||
DVDInterface::Shutdown();
|
||||
DSP::Shutdown();
|
||||
Memory::Shutdown();
|
||||
ExpansionInterface::Shutdown();
|
||||
SerialInterface::Shutdown();
|
||||
AudioInterface::Shutdown();
|
||||
|
||||
State::Shutdown();
|
||||
CoreTiming::Shutdown();
|
||||
}
|
||||
|
||||
void DoState(PointerWrap& p)
|
||||
{
|
||||
Memory::DoState(p);
|
||||
p.DoMarker("Memory");
|
||||
VideoInterface::DoState(p);
|
||||
p.DoMarker("VideoInterface");
|
||||
SerialInterface::DoState(p);
|
||||
p.DoMarker("SerialInterface");
|
||||
ProcessorInterface::DoState(p);
|
||||
p.DoMarker("ProcessorInterface");
|
||||
DSP::DoState(p);
|
||||
p.DoMarker("DSP");
|
||||
DVDInterface::DoState(p);
|
||||
p.DoMarker("DVDInterface");
|
||||
GPFifo::DoState(p);
|
||||
p.DoMarker("GPFifo");
|
||||
ExpansionInterface::DoState(p);
|
||||
p.DoMarker("ExpansionInterface");
|
||||
AudioInterface::DoState(p);
|
||||
p.DoMarker("AudioInterface");
|
||||
|
||||
if (SConfig::GetInstance().bWii)
|
||||
{
|
||||
WII_IPCInterface::DoState(p);
|
||||
p.DoMarker("WII_IPCInterface");
|
||||
WII_IPC_HLE_Interface::DoState(p);
|
||||
p.DoMarker("WII_IPC_HLE_Interface");
|
||||
}
|
||||
|
||||
p.DoMarker("WIIHW");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user