diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-18 14:52:09 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-18 14:52:09 -0500 |
commit | 2d4a6883bcfa785e990c5dbf3fab9eb73a0ed277 (patch) | |
tree | f5d63b13728e8b235e8620a015d3f48e34a0904d /src/core/core.cpp | |
parent | cec0d4f1918c640524fa0087549da2fab0960e24 (diff) |
core: Use shared_ptr for cpu_core.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 613a98b4ca..89bb2887e3 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -141,14 +141,14 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { switch (Settings::values.cpu_core) { case Settings::CpuCore::Unicorn: - cpu_core = std::make_unique<ARM_Unicorn>(); + cpu_core = std::make_shared<ARM_Unicorn>(); break; case Settings::CpuCore::Dynarmic: default: #ifdef ARCHITECTURE_x86_64 - cpu_core = std::make_unique<ARM_Dynarmic>(); + cpu_core = std::make_shared<ARM_Dynarmic>(); #else - cpu_core = std::make_unique<ARM_Unicorn>(); + cpu_core = std::make_shared<ARM_Unicorn>(); LOG_WARNING(Core, "CPU JIT requested, but Dynarmic not available"); #endif break; |