Explorar o código

core: Set is_powered_on before GPU is initialized.

bunnei %!s(int64=7) %!d(string=hai) anos
pai
achega
81e086b5ac
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/core/core.cpp

+ 3 - 1
src/core/core.cpp

@@ -129,10 +129,12 @@ struct System::Impl {
             return ResultStatus::ErrorVideoCore;
         }
 
+        is_powered_on = true;
+
         gpu_core = std::make_unique<Tegra::GPU>(system, renderer->Rasterizer());
 
         cpu_core_manager.Initialize(system);
-        is_powered_on = true;
+
         LOG_DEBUG(Core, "Initialized OK");
 
         // Reset counters and set time origin to current frame