diff options
author | MerryMage <MerryMage@users.noreply.github.com> | 2018-02-21 17:37:48 +0100 |
---|---|---|
committer | MerryMage <MerryMage@users.noreply.github.com> | 2018-02-21 17:38:18 +0100 |
commit | 1cdc74c5e9236cca085544db6bc22106ffe97927 (patch) | |
tree | b2cb9c33cff626f6bb2a3b59717d90775abdb5b9 /src/core | |
parent | Merge pull request #206 from mailwl/aoc-listaddoncontent (diff) | |
download | yuzu-1cdc74c5e9236cca085544db6bc22106ffe97927.tar yuzu-1cdc74c5e9236cca085544db6bc22106ffe97927.tar.gz yuzu-1cdc74c5e9236cca085544db6bc22106ffe97927.tar.bz2 yuzu-1cdc74c5e9236cca085544db6bc22106ffe97927.tar.lz yuzu-1cdc74c5e9236cca085544db6bc22106ffe97927.tar.xz yuzu-1cdc74c5e9236cca085544db6bc22106ffe97927.tar.zst yuzu-1cdc74c5e9236cca085544db6bc22106ffe97927.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 8c5dd3761..4fb035556 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -139,6 +139,8 @@ void System::Reschedule() { System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { LOG_DEBUG(HW_Memory, "initialized OK"); + CoreTiming::Init(); + switch (Settings::values.cpu_core) { case Settings::CpuCore::Unicorn: cpu_core = std::make_shared<ARM_Unicorn>(); @@ -154,14 +156,13 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { break; } - scheduler = std::make_unique<Kernel::Scheduler>(cpu_core.get()); gpu_core = std::make_unique<Tegra::GPU>(); telemetry_session = std::make_unique<Core::TelemetrySession>(); - CoreTiming::Init(); HW::Init(); Kernel::Init(system_mode); + scheduler = std::make_unique<Kernel::Scheduler>(cpu_core.get()); Service::Init(); GDBStub::Init(); @@ -189,15 +190,18 @@ void System::Shutdown() { perf_results.frametime * 1000.0); // Shutdown emulation session - GDBStub::Shutdown(); VideoCore::Shutdown(); + GDBStub::Shutdown(); Service::Shutdown(); + scheduler = nullptr; Kernel::Shutdown(); HW::Shutdown(); - CoreTiming::Shutdown(); + telemetry_session = nullptr; + gpu_core = nullptr; cpu_core = nullptr; + CoreTiming::Shutdown(); + app_loader = nullptr; - telemetry_session = nullptr; LOG_DEBUG(Core, "Shutdown OK"); } |