diff options
| author | 2015-05-01 19:05:18 -0400 | |
|---|---|---|
| committer | 2015-05-01 19:05:18 -0400 | |
| commit | 6a2d8c46f21e8813e0472dba28932ed461ce1a66 (patch) | |
| tree | d7057cf9926c822c12cc7d82814a252db79ca600 /src/core/hle/hle.cpp | |
| parent | Merge pull request #717 from linkmauve/useless-auto (diff) | |
| parent | Qt: Shutdown game on emulator close event. (diff) | |
| download | yuzu-6a2d8c46f21e8813e0472dba28932ed461ce1a66.tar.gz yuzu-6a2d8c46f21e8813e0472dba28932ed461ce1a66.tar.xz yuzu-6a2d8c46f21e8813e0472dba28932ed461ce1a66.zip | |
Merge pull request #713 from bunnei/qt-emuthread-fixes
Fix emulation state resetting to support multiple emulation sessions
Diffstat (limited to 'src/core/hle/hle.cpp')
| -rw-r--r-- | src/core/hle/hle.cpp | 9 |
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"); | |||
| 23 | 23 | ||
| 24 | static std::vector<ModuleDef> g_module_db; | 24 | static std::vector<ModuleDef> g_module_db; |
| 25 | 25 | ||
| 26 | bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread | 26 | bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread |
| 27 | 27 | ||
| 28 | static const FunctionDef* GetSVCInfo(u32 opcode) { | 28 | static const FunctionDef* GetSVCInfo(u32 opcode) { |
| 29 | u32 func_num = opcode & 0xFFFFFF; // 8 bits | 29 | u32 func_num = opcode & 0xFFFFFF; // 8 bits |
| @@ -73,17 +73,20 @@ static void RegisterAllModules() { | |||
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | void Init() { | 75 | void Init() { |
| 76 | Service::Init(); | ||
| 77 | |||
| 78 | RegisterAllModules(); | 76 | RegisterAllModules(); |
| 79 | 77 | ||
| 78 | Service::Init(); | ||
| 80 | ConfigMem::Init(); | 79 | ConfigMem::Init(); |
| 81 | SharedPage::Init(); | 80 | SharedPage::Init(); |
| 82 | 81 | ||
| 82 | g_reschedule = false; | ||
| 83 | |||
| 83 | LOG_DEBUG(Kernel, "initialized OK"); | 84 | LOG_DEBUG(Kernel, "initialized OK"); |
| 84 | } | 85 | } |
| 85 | 86 | ||
| 86 | void Shutdown() { | 87 | void Shutdown() { |
| 88 | ConfigMem::Shutdown(); | ||
| 89 | SharedPage::Shutdown(); | ||
| 87 | Service::Shutdown(); | 90 | Service::Shutdown(); |
| 88 | 91 | ||
| 89 | g_module_db.clear(); | 92 | g_module_db.clear(); |