From b7fac494cdda9efb65168b116b1673af4ab9f242 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 12 Feb 2015 15:11:39 -0500 Subject: dyncom: Switch the app and system cores into the correct mode at initialization --- src/core/core.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/core/core.cpp') diff --git a/src/core/core.cpp b/src/core/core.cpp index 63be27be..15787bc1 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -56,11 +56,10 @@ void Stop() { /// Initialize the core int Init() { - LOG_DEBUG(Core, "initialized OK"); - - g_sys_core = new ARM_DynCom(); - g_app_core = new ARM_DynCom(); + g_sys_core = new ARM_DynCom(USER32MODE); + g_app_core = new ARM_DynCom(USER32MODE); + LOG_DEBUG(Core, "Initialized OK"); return 0; } @@ -68,7 +67,7 @@ void Shutdown() { delete g_app_core; delete g_sys_core; - LOG_DEBUG(Core, "shutdown OK"); + LOG_DEBUG(Core, "Shutdown OK"); } } // namespace -- cgit v1.2.3