mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
BootManager: Avoid Global System Accessor
This commit is contained in:
parent
5a81916ee9
commit
16c609dcd4
5 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue