diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-30 16:02:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 16:02:50 +0200 |
commit | 5094dfa081c7275e35496374a42996b11f0f6005 (patch) | |
tree | 8cdfb8c270c6299a1b172fb9c14856684bedf084 /src/core/core.h | |
parent | Merge pull request #1202 from FearlessTobi/port-3825 (diff) | |
parent | kernel: Eliminate kernel global state (diff) | |
download | yuzu-5094dfa081c7275e35496374a42996b11f0f6005.tar yuzu-5094dfa081c7275e35496374a42996b11f0f6005.tar.gz yuzu-5094dfa081c7275e35496374a42996b11f0f6005.tar.bz2 yuzu-5094dfa081c7275e35496374a42996b11f0f6005.tar.lz yuzu-5094dfa081c7275e35496374a42996b11f0f6005.tar.xz yuzu-5094dfa081c7275e35496374a42996b11f0f6005.tar.zst yuzu-5094dfa081c7275e35496374a42996b11f0f6005.zip |
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 8 |
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 |