diff options
author | Chloe <25727384+ogniK5377@users.noreply.github.com> | 2020-11-04 18:36:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 18:36:55 +1100 |
commit | 6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1 (patch) | |
tree | a97a13d00eaae7e81f028a57fef7dadf9d96a27c /src/core/core.cpp | |
parent | 4bfa411ddcf3b5454c85ada70f28438feaaae93e (diff) | |
parent | 848bdf8a40aa31f1525e7326225f0f9fc3126d4d (diff) |
Merge pull request #4869 from bunnei/improve-gpu-sync
Improvements to GPU synchronization & various refactoring
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index fde2ccc09..242796008 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -179,16 +179,18 @@ struct System::Impl { arp_manager.ResetAll(); telemetry_session = std::make_unique<Core::TelemetrySession>(); + + gpu_core = VideoCore::CreateGPU(emu_window, system); + if (!gpu_core) { + return ResultStatus::ErrorVideoCore; + } + service_manager = std::make_shared<Service::SM::ServiceManager>(kernel); Service::Init(service_manager, system); GDBStub::DeferStart(); interrupt_manager = std::make_unique<Core::Hardware::InterruptManager>(system); - gpu_core = VideoCore::CreateGPU(emu_window, system); - if (!gpu_core) { - return ResultStatus::ErrorVideoCore; - } // Initialize time manager, which must happen after kernel is created time_manager.Initialize(); |