summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2015-01-08 22:20:42 -0500
committerGravatar bunnei2015-01-08 22:20:42 -0500
commit97cfdd16e637edceb08c81f446964bb9f52330b9 (patch)
tree2eb72bb96e65660201520327c138485917f63c07 /src
parentMerge pull request #450 from Subv/ticks_fix (diff)
parentCore: Fixed a crash and removed some unused variables. (diff)
downloadyuzu-97cfdd16e637edceb08c81f446964bb9f52330b9.tar.gz
yuzu-97cfdd16e637edceb08c81f446964bb9f52330b9.tar.xz
yuzu-97cfdd16e637edceb08c81f446964bb9f52330b9.zip
Merge pull request #451 from Subv/wut
Core: Fixed a crash and removed some unused variables.
Diffstat (limited to 'src')
-rw-r--r--src/core/core.cpp6
-rw-r--r--src/core/system.cpp4
2 files changed, 2 insertions, 8 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 98f8a7dff..ff506d67d 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -17,8 +17,6 @@
17 17
18namespace Core { 18namespace Core {
19 19
20static u64 last_ticks = 0; ///< Last CPU ticks
21static ARM_Disasm* disasm = nullptr; ///< ARM disassembler
22ARM_Interface* g_app_core = nullptr; ///< ARM11 application core 20ARM_Interface* g_app_core = nullptr; ///< ARM11 application core
23ARM_Interface* g_sys_core = nullptr; ///< ARM11 system (OS) core 21ARM_Interface* g_sys_core = nullptr; ///< ARM11 system (OS) core
24 22
@@ -60,7 +58,6 @@ void Stop() {
60int Init() { 58int Init() {
61 LOG_DEBUG(Core, "initialized OK"); 59 LOG_DEBUG(Core, "initialized OK");
62 60
63 disasm = new ARM_Disasm();
64 g_sys_core = new ARM_Interpreter(); 61 g_sys_core = new ARM_Interpreter();
65 62
66 switch (Settings::values.cpu_core) { 63 switch (Settings::values.cpu_core) {
@@ -73,13 +70,10 @@ int Init() {
73 break; 70 break;
74 } 71 }
75 72
76 last_ticks = Core::g_app_core->GetTicks();
77
78 return 0; 73 return 0;
79} 74}
80 75
81void Shutdown() { 76void Shutdown() {
82 delete disasm;
83 delete g_app_core; 77 delete g_app_core;
84 delete g_sys_core; 78 delete g_sys_core;
85 79
diff --git a/src/core/system.cpp b/src/core/system.cpp
index d6188f055..f4c2df1cd 100644
--- a/src/core/system.cpp
+++ b/src/core/system.cpp
@@ -21,11 +21,11 @@ void UpdateState(State state) {
21 21
22void Init(EmuWindow* emu_window) { 22void Init(EmuWindow* emu_window) {
23 Core::Init(); 23 Core::Init();
24 CoreTiming::Init();
24 Memory::Init(); 25 Memory::Init();
25 HW::Init(); 26 HW::Init();
26 Kernel::Init(); 27 Kernel::Init();
27 HLE::Init(); 28 HLE::Init();
28 CoreTiming::Init();
29 VideoCore::Init(emu_window); 29 VideoCore::Init(emu_window);
30} 30}
31 31
@@ -38,11 +38,11 @@ void RunLoopUntil(u64 global_cycles) {
38 38
39void Shutdown() { 39void Shutdown() {
40 VideoCore::Shutdown(); 40 VideoCore::Shutdown();
41 CoreTiming::Shutdown();
42 HLE::Shutdown(); 41 HLE::Shutdown();
43 Kernel::Shutdown(); 42 Kernel::Shutdown();
44 HW::Shutdown(); 43 HW::Shutdown();
45 Memory::Shutdown(); 44 Memory::Shutdown();
45 CoreTiming::Shutdown();
46 Core::Shutdown(); 46 Core::Shutdown();
47} 47}
48 48