core: Use unique_ptr for holding the interpreter instances

This commit is contained in:
Lioncash 2015-12-29 18:03:08 -05:00
parent 73740d74ed
commit cee8df6ff0
4 changed files with 20 additions and 20 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include <memory>
#include "common/common_types.h"
class ARM_Interface;
@ -23,8 +24,8 @@ struct ThreadContext {
u32 fpexc;
};
extern ARM_Interface* g_app_core; ///< ARM11 application core
extern ARM_Interface* g_sys_core; ///< ARM11 system (OS) core
extern std::unique_ptr<ARM_Interface> g_app_core; ///< ARM11 application core
extern std::unique_ptr<ARM_Interface> g_sys_core; ///< ARM11 system (OS) core
////////////////////////////////////////////////////////////////////////////////////////////////////