diff options
author | archshift <admin@archshift.com> | 2014-10-25 21:54:44 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-10-28 02:35:21 +0100 |
commit | 0783498f570e7d5c00174cd10a3c1ff105d1eae6 (patch) | |
tree | 10f64506a8f5111f56c4db17c95f6aba19baf0b9 /src/core/core.cpp | |
parent | Merge pull request #150 from lioncash/typo (diff) | |
download | yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.gz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.bz2 yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.lz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.xz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.zst yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 01d4f0afa..25c78d33c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -5,12 +5,14 @@ #include "common/common_types.h" #include "core/core.h" -#include "core/hw/hw.h" + +#include "core/settings.h" #include "core/arm/disassembler/arm_disasm.h" #include "core/arm/interpreter/arm_interpreter.h" - +#include "core/arm/dyncom/arm_dyncom.h" #include "core/hle/hle.h" #include "core/hle/kernel/thread.h" +#include "core/hw/hw.h" namespace Core { @@ -48,9 +50,18 @@ int Init() { NOTICE_LOG(MASTER_LOG, "initialized OK"); g_disasm = new ARM_Disasm(); - g_app_core = new ARM_Interpreter(); g_sys_core = new ARM_Interpreter(); + switch (Settings::values.cpu_core) { + case CPU_FastInterpreter: + g_app_core = new ARM_DynCom(); + break; + case CPU_Interpreter: + default: + g_app_core = new ARM_Interpreter(); + break; + } + g_last_ticks = Core::g_app_core->GetTicks(); return 0; |