summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-30 10:02:50 -0400
committerGitHub <noreply@github.com>2018-08-30 10:02:50 -0400
commit5094dfa081c7275e35496374a42996b11f0f6005 (patch)
tree8cdfb8c270c6299a1b172fb9c14856684bedf084 /src/core/core.h
parent42ef40884f222bfd0dfa08cd56e01e89b0e2ab0f (diff)
parent0cbcd6ec9aeeafc298fe2e6e4ac10d68bb7267c5 (diff)
Merge pull request #1198 from lioncash/kernel
kernel: Eliminate kernel global state
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 321104585..2c18f7193 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -12,6 +12,7 @@
#include "common/common_types.h"
#include "core/arm/exclusive_monitor.h"
#include "core/core_cpu.h"
+#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/object.h"
#include "core/hle/kernel/scheduler.h"
#include "core/loader/loader.h"
@@ -188,6 +189,12 @@ public:
return current_process;
}
+ /// Provides a reference to the kernel instance.
+ Kernel::KernelCore& Kernel();
+
+ /// Provides a constant reference to the kernel instance.
+ const Kernel::KernelCore& Kernel() const;
+
/// Gets the name of the current game
Loader::ResultStatus GetGameName(std::string& out) const {
if (app_loader == nullptr)
@@ -246,6 +253,7 @@ private:
*/
ResultStatus Init(Frontend::EmuWindow& emu_window);
+ Kernel::KernelCore kernel;
/// RealVfsFilesystem instance
FileSys::VirtualFilesystem virtual_filesystem;
/// AppLoader used to load the current executing application