summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2015-02-12 15:11:39 -0500
committerGravatar Lioncash2015-02-12 21:54:28 -0500
commitb7fac494cdda9efb65168b116b1673af4ab9f242 (patch)
tree54eed2ab999ddb5063a5f0b52a72b27c8159cb44 /src/core/core.cpp
parentdyncom: Clean up the constructor (diff)
downloadyuzu-b7fac494cdda9efb65168b116b1673af4ab9f242.tar.gz
yuzu-b7fac494cdda9efb65168b116b1673af4ab9f242.tar.xz
yuzu-b7fac494cdda9efb65168b116b1673af4ab9f242.zip
dyncom: Switch the app and system cores into the correct mode at initialization
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 63be27be2..15787bc17 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -56,11 +56,10 @@ void Stop() {
56 56
57/// Initialize the core 57/// Initialize the core
58int Init() { 58int Init() {
59 LOG_DEBUG(Core, "initialized OK"); 59 g_sys_core = new ARM_DynCom(USER32MODE);
60 60 g_app_core = new ARM_DynCom(USER32MODE);
61 g_sys_core = new ARM_DynCom();
62 g_app_core = new ARM_DynCom();
63 61
62 LOG_DEBUG(Core, "Initialized OK");
64 return 0; 63 return 0;
65} 64}
66 65
@@ -68,7 +67,7 @@ void Shutdown() {
68 delete g_app_core; 67 delete g_app_core;
69 delete g_sys_core; 68 delete g_sys_core;
70 69
71 LOG_DEBUG(Core, "shutdown OK"); 70 LOG_DEBUG(Core, "Shutdown OK");
72} 71}
73 72
74} // namespace 73} // namespace