BootManager: Avoid Global System Accessor

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

View File

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