diff options
| author | 2015-12-29 18:03:08 -0500 | |
|---|---|---|
| committer | 2015-12-29 18:03:08 -0500 | |
| commit | cee8df6ff018ea6a851f012fa1c0eea758c758b0 (patch) | |
| tree | 8fa1c00d82331054c4c6d4d0a331faec196efff9 /src/core/core.h | |
| parent | Merge pull request #1300 from Subv/arbitrateaddress (diff) | |
| download | yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar.gz yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar.xz yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.zip | |
core: Use unique_ptr for holding the interpreter instances
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/core.h b/src/core/core.h index 491230a74..453e0a5f0 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <memory> | ||
| 7 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 8 | 9 | ||
| 9 | class ARM_Interface; | 10 | class ARM_Interface; |
| @@ -23,8 +24,8 @@ struct ThreadContext { | |||
| 23 | u32 fpexc; | 24 | u32 fpexc; |
| 24 | }; | 25 | }; |
| 25 | 26 | ||
| 26 | extern ARM_Interface* g_app_core; ///< ARM11 application core | 27 | extern std::unique_ptr<ARM_Interface> g_app_core; ///< ARM11 application core |
| 27 | extern ARM_Interface* g_sys_core; ///< ARM11 system (OS) core | 28 | extern std::unique_ptr<ARM_Interface> g_sys_core; ///< ARM11 system (OS) core |
| 28 | 29 | ||
| 29 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 30 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 30 | 31 | ||