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

@ -570,7 +570,7 @@ static void Run(JNIEnv* env, std::unique_ptr<BootParameters>&& boot, bool riivol
s_need_nonblocking_alert_msg = true;
std::unique_lock<std::mutex> surface_guard(s_surface_lock);
if (BootManager::BootCore(std::move(boot), wsi))
if (BootManager::BootCore(Core::System::GetInstance(), std::move(boot), wsi))
{
static constexpr int WAIT_STEP = 25;
while (Core::GetState() == Core::State::Starting)