summaryrefslogtreecommitdiffstats
path: root/src/core/hle/hle.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-04-28 04:45:43 +0200
committerbunnei <bunneidev@gmail.com>2015-05-02 00:27:05 +0200
commitd3c2f9a4a4c48e4571cd693a0c1801b665819cdf (patch)
tree82d8f104a3098277cf0f311db8e93390a69a0b4a /src/core/hle/hle.cpp
parentDyncom: Move cream cache to ARMul_State. (diff)
downloadyuzu-d3c2f9a4a4c48e4571cd693a0c1801b665819cdf.tar
yuzu-d3c2f9a4a4c48e4571cd693a0c1801b665819cdf.tar.gz
yuzu-d3c2f9a4a4c48e4571cd693a0c1801b665819cdf.tar.bz2
yuzu-d3c2f9a4a4c48e4571cd693a0c1801b665819cdf.tar.lz
yuzu-d3c2f9a4a4c48e4571cd693a0c1801b665819cdf.tar.xz
yuzu-d3c2f9a4a4c48e4571cd693a0c1801b665819cdf.tar.zst
yuzu-d3c2f9a4a4c48e4571cd693a0c1801b665819cdf.zip
Diffstat (limited to 'src/core/hle/hle.cpp')
-rw-r--r--src/core/hle/hle.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp
index c645d6563..191d0411e 100644
--- a/src/core/hle/hle.cpp
+++ b/src/core/hle/hle.cpp
@@ -23,7 +23,7 @@ Common::Profiling::TimingCategory profiler_svc("SVC Calls");
static std::vector<ModuleDef> g_module_db;
-bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread
+bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread
static const FunctionDef* GetSVCInfo(u32 opcode) {
u32 func_num = opcode & 0xFFFFFF; // 8 bits
@@ -73,17 +73,20 @@ static void RegisterAllModules() {
}
void Init() {
- Service::Init();
-
RegisterAllModules();
+ Service::Init();
ConfigMem::Init();
SharedPage::Init();
+ g_reschedule = false;
+
LOG_DEBUG(Kernel, "initialized OK");
}
void Shutdown() {
+ ConfigMem::Shutdown();
+ SharedPage::Shutdown();
Service::Shutdown();
g_module_db.clear();