MDEC: Convert to namespace

This commit is contained in:
Connor McLaughlin
2022-12-20 20:45:42 +10:00
parent 81823562fa
commit 1c8ef86f12
6 changed files with 342 additions and 353 deletions

View File

@ -1371,7 +1371,7 @@ bool System::Initialize(bool force_software_renderer)
g_pad.Initialize();
g_timers.Initialize();
SPU::Initialize();
g_mdec.Initialize();
MDEC::Initialize();
g_sio.Initialize();
static constexpr float WARNING_DURATION = 15.0f;
@ -1429,7 +1429,7 @@ void System::DestroySystem()
g_texture_replacements.Shutdown();
g_sio.Shutdown();
g_mdec.Shutdown();
MDEC::Shutdown();
SPU::Shutdown();
g_timers.Shutdown();
g_pad.Shutdown();
@ -1642,7 +1642,7 @@ bool System::DoState(StateWrapper& sw, GPUTexture** host_texture, bool update_di
if (!sw.DoMarker("SPU") || !SPU::DoState(sw))
return false;
if (!sw.DoMarker("MDEC") || !g_mdec.DoState(sw))
if (!sw.DoMarker("MDEC") || !MDEC::DoState(sw))
return false;
if (!sw.DoMarker("SIO") || !g_sio.DoState(sw))
@ -1724,7 +1724,7 @@ void System::InternalReset()
g_pad.Reset();
g_timers.Reset();
SPU::Reset();
g_mdec.Reset();
MDEC::Reset();
g_sio.Reset();
s_frame_number = 1;
s_internal_frame_number = 0;