From 16c609dcd45780a1cc97660d6e8a23936f9adfe3 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Fri, 1 Mar 2024 23:39:04 -0800 Subject: BootManager: Avoid Global System Accessor --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp') diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index ff69e6bf7a..9db8ef8a47 100644 --- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp +++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp @@ -24,6 +24,7 @@ #include "Core/Core.h" #include "Core/DolphinAnalytics.h" #include "Core/Host.h" +#include "Core/System.h" #include "UICommon/CommandLineParse.h" #ifdef USE_DISCORD_PRESENCE @@ -304,7 +305,7 @@ int main(int argc, char* argv[]) DolphinAnalytics::Instance().ReportDolphinStart("nogui"); - if (!BootManager::BootCore(std::move(boot), wsi)) + if (!BootManager::BootCore(Core::System::GetInstance(), std::move(boot), wsi)) { fprintf(stderr, "Could not boot the specified file\n"); return 1; -- cgit v1.2.3