mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
BootManager: Avoid Global System Accessor
This commit is contained in:
parent
5a81916ee9
commit
16c609dcd4
5 changed files with 12 additions and 6 deletions
|
@ -55,12 +55,12 @@
|
|||
namespace BootManager
|
||||
{
|
||||
// Boot the ISO or file
|
||||
bool BootCore(std::unique_ptr<BootParameters> boot, const WindowSystemInfo& wsi)
|
||||
bool BootCore(Core::System& system, std::unique_ptr<BootParameters> boot,
|
||||
const WindowSystemInfo& wsi)
|
||||
{
|
||||
if (!boot)
|
||||
return false;
|
||||
|
||||
auto& system = Core::System::GetInstance();
|
||||
SConfig& StartUp = SConfig::GetInstance();
|
||||
|
||||
if (!StartUp.SetPathsAndGameMetadata(system, *boot))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue