BootManager: Avoid Global System Accessor

This commit is contained in:
mitaclaw 2024-03-01 23:39:04 -08:00
commit 16c609dcd4
5 changed files with 12 additions and 6 deletions

View file

@ -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))