Add Core::GetState() for debugger

This commit is contained in:
Mathieu Vaillancourt 2014-04-03 21:22:13 -04:00
parent 20bf361b95
commit 564e3f5032
2 changed files with 9 additions and 0 deletions

View File

@ -143,6 +143,11 @@ int Init() {
return 0;
}
ARMul_State* GetState()
{
return core->state;
}
void Shutdown() {
//delete g_arm_state;
//g_arm_state = NULL;

View File

@ -25,6 +25,8 @@
#ifndef CORE_CORE_H_
#define CORE_CORE_H_
#include "arm/armdefs.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
namespace Core {
@ -47,6 +49,8 @@ void Stop();
/// Initialize the core
int Init();
ARMul_State* GetState();
} // namespace
////////////////////////////////////////////////////////////////////////////////////////////////////