mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 09:51:31 +02:00
Core/IOS/IOS: Remove global system accessor from Init()
Removes the final global system accessor from the main IOS code by passing the system instance through it.
This commit is contained in:
parent
1f50a2fd5b
commit
e6db08e03a
@ -57,7 +57,7 @@ void Init(Core::System& system, const Sram* override_sram)
|
|||||||
if (SConfig::GetInstance().bWii)
|
if (SConfig::GetInstance().bWii)
|
||||||
{
|
{
|
||||||
IOS::Init();
|
IOS::Init();
|
||||||
IOS::HLE::Init(); // Depends on Memory
|
IOS::HLE::Init(system); // Depends on Memory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
friend class ::CBoot;
|
friend class ::CBoot;
|
||||||
friend void ::IOS::HLE::Init();
|
friend void ::IOS::HLE::Init(Core::System&);
|
||||||
|
|
||||||
void ProcessQueuedIOCtl();
|
void ProcessQueuedIOCtl();
|
||||||
std::optional<DIResult> StartIOCtl(const IOCtlRequest& request);
|
std::optional<DIResult> StartIOCtl(const IOCtlRequest& request);
|
||||||
|
@ -949,9 +949,8 @@ static void FinishPPCBootstrap(Core::System& system, u64 userdata, s64 cycles_la
|
|||||||
INFO_LOG_FMT(IOS, "Bootstrapping done.");
|
INFO_LOG_FMT(IOS, "Bootstrapping done.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init()
|
void Init(Core::System& system)
|
||||||
{
|
{
|
||||||
auto& system = Core::System::GetInstance();
|
|
||||||
auto& core_timing = system.GetCoreTiming();
|
auto& core_timing = system.GetCoreTiming();
|
||||||
|
|
||||||
s_event_enqueue =
|
s_event_enqueue =
|
||||||
|
@ -216,7 +216,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Used for controlling and accessing an IOS instance that is tied to emulation.
|
// Used for controlling and accessing an IOS instance that is tied to emulation.
|
||||||
void Init();
|
void Init(Core::System& system);
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
EmulationKernel* GetIOS();
|
EmulationKernel* GetIOS();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user