diff options
author | Zach Hilman <DarkLordZach@users.noreply.github.com> | 2019-10-06 20:47:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-06 20:47:48 -0400 |
commit | 5326d3cb3a75a1f7df531e47cf0acadc3c5db32b (patch) | |
tree | 83697ca2dba90470ba59eff2f56e71769b03e3d9 /src/core/core.h | |
parent | dcdd887df3549d41c3fdaf4ad8a20218179039d5 (diff) | |
parent | 839b38c404224592372647c4adb316bbe6f856e4 (diff) |
Merge pull request #2951 from lioncash/global
core: Remove Core::CurrentProcess()
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/core.h b/src/core/core.h index f49b7fbf9..d13b6aa5e 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -8,7 +8,6 @@ #include <memory> #include <string> -#include <map> #include "common/common_types.h" #include "core/file_sys/vfs_types.h" #include "core/hle/kernel/object.h" @@ -98,6 +97,8 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, class System { public: + using CurrentBuildProcessID = std::array<u8, 0x20>; + System(const System&) = delete; System& operator=(const System&) = delete; @@ -330,9 +331,9 @@ public: bool GetExitLock() const; - void SetCurrentProcessBuildID(std::array<u8, 0x20> id); + void SetCurrentProcessBuildID(const CurrentBuildProcessID& id); - const std::array<u8, 0x20>& GetCurrentProcessBuildID() const; + const CurrentBuildProcessID& GetCurrentProcessBuildID() const; private: System(); @@ -357,8 +358,4 @@ private: static System s_instance; }; -inline Kernel::Process* CurrentProcess() { - return System::GetInstance().CurrentProcess(); -} - } // namespace Core |