summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Mathieu Vaillancourt2014-04-03 21:22:13 -0400
committerGravatar Mathieu Vaillancourt2014-04-03 21:25:39 -0400
commit564e3f5032b072204f05e2b13604d9486fa52b2f (patch)
treeb904634ec65719170fdc0b6633d0bfc0f0d8b319 /src
parentremoved some useless log messages (diff)
downloadyuzu-564e3f5032b072204f05e2b13604d9486fa52b2f.tar.gz
yuzu-564e3f5032b072204f05e2b13604d9486fa52b2f.tar.xz
yuzu-564e3f5032b072204f05e2b13604d9486fa52b2f.zip
Add Core::GetState() for debugger
Diffstat (limited to 'src')
-rw-r--r--src/core/src/core.cpp5
-rw-r--r--src/core/src/core.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/core/src/core.cpp b/src/core/src/core.cpp
index 523b860f6..800a2a3fb 100644
--- a/src/core/src/core.cpp
+++ b/src/core/src/core.cpp
@@ -143,6 +143,11 @@ int Init() {
143 return 0; 143 return 0;
144} 144}
145 145
146ARMul_State* GetState()
147{
148 return core->state;
149}
150
146void Shutdown() { 151void Shutdown() {
147 //delete g_arm_state; 152 //delete g_arm_state;
148 //g_arm_state = NULL; 153 //g_arm_state = NULL;
diff --git a/src/core/src/core.h b/src/core/src/core.h
index 8021b762e..f4a3ca05d 100644
--- a/src/core/src/core.h
+++ b/src/core/src/core.h
@@ -25,6 +25,8 @@
25#ifndef CORE_CORE_H_ 25#ifndef CORE_CORE_H_
26#define CORE_CORE_H_ 26#define CORE_CORE_H_
27 27
28#include "arm/armdefs.h"
29
28//////////////////////////////////////////////////////////////////////////////////////////////////// 30////////////////////////////////////////////////////////////////////////////////////////////////////
29 31
30namespace Core { 32namespace Core {
@@ -47,6 +49,8 @@ void Stop();
47/// Initialize the core 49/// Initialize the core
48int Init(); 50int Init();
49 51
52ARMul_State* GetState();
53
50} // namespace 54} // namespace
51 55
52//////////////////////////////////////////////////////////////////////////////////////////////////// 56////////////////////////////////////////////////////////////////////////////////////////////////////