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

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