From f09b71582ee357ef47f8608a5b0fd848e404b453 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Mon, 18 Mar 2024 01:35:42 -0700 Subject: Core: Avoid (Some) Global System Accessor --- Source/Core/DolphinNoGUI/PlatformHeadless.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinNoGUI/PlatformHeadless.cpp') diff --git a/Source/Core/DolphinNoGUI/PlatformHeadless.cpp b/Source/Core/DolphinNoGUI/PlatformHeadless.cpp index 8e3c82bca1..2f6ea2e7ac 100644 --- a/Source/Core/DolphinNoGUI/PlatformHeadless.cpp +++ b/Source/Core/DolphinNoGUI/PlatformHeadless.cpp @@ -3,7 +3,9 @@ #include #include + #include "Core/Core.h" +#include "Core/System.h" #include "DolphinNoGUI/Platform.h" namespace @@ -27,7 +29,7 @@ void PlatformHeadless::MainLoop() while (m_running.IsSet()) { UpdateRunningFlag(); - Core::HostDispatchJobs(); + Core::HostDispatchJobs(Core::System::GetInstance()); std::this_thread::sleep_for(std::chrono::milliseconds(100)); } } -- cgit v1.2.3