mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #12608 from mitaclaw/bootmanager-global-system
BootManager: Avoid Global System Accessor
This commit is contained in:
@ -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))
|
||||
|
@ -5,12 +5,17 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace Core
|
||||
{
|
||||
class System;
|
||||
}
|
||||
struct BootParameters;
|
||||
struct WindowSystemInfo;
|
||||
|
||||
namespace BootManager
|
||||
{
|
||||
bool BootCore(std::unique_ptr<BootParameters> parameters, const WindowSystemInfo& wsi);
|
||||
bool BootCore(Core::System& system, std::unique_ptr<BootParameters> parameters,
|
||||
const WindowSystemInfo& wsi);
|
||||
|
||||
// Synchronise Dolphin's configuration with the SYSCONF (which may have changed during emulation),
|
||||
// and restore settings that were overriden by per-game INIs or for some other reason.
|
||||
|
Reference in New Issue
Block a user