Merge pull request #12608 from mitaclaw/bootmanager-global-system

BootManager: Avoid Global System Accessor
This commit is contained in:
Admiral H. Curtiss
2024-03-12 03:39:48 +01:00
committed by GitHub
5 changed files with 12 additions and 6 deletions

View File

@ -1126,7 +1126,7 @@ void MainWindow::StartGame(std::unique_ptr<BootParameters>&& parameters)
ShowRenderWidget();
// Boot up, show an error if it fails to load the game.
if (!BootManager::BootCore(std::move(parameters),
if (!BootManager::BootCore(Core::System::GetInstance(), std::move(parameters),
::GetWindowSystemInfo(m_render_widget->windowHandle())))
{
ModalMessageBox::critical(this, tr("Error"), tr("Failed to init core"), QMessageBox::Ok);