diff options
| author | 2019-10-06 20:47:48 -0400 | |
|---|---|---|
| committer | 2019-10-06 20:47:48 -0400 | |
| commit | 5326d3cb3a75a1f7df531e47cf0acadc3c5db32b (patch) | |
| tree | 83697ca2dba90470ba59eff2f56e71769b03e3d9 /src/core/core.h | |
| parent | Merge pull request #2952 from lioncash/warning (diff) | |
| parent | core/core: Remove unused header (diff) | |
| download | yuzu-5326d3cb3a75a1f7df531e47cf0acadc3c5db32b.tar.gz yuzu-5326d3cb3a75a1f7df531e47cf0acadc3c5db32b.tar.xz yuzu-5326d3cb3a75a1f7df531e47cf0acadc3c5db32b.zip | |
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 @@ | |||
| 8 | #include <memory> | 8 | #include <memory> |
| 9 | #include <string> | 9 | #include <string> |
| 10 | 10 | ||
| 11 | #include <map> | ||
| 12 | #include "common/common_types.h" | 11 | #include "common/common_types.h" |
| 13 | #include "core/file_sys/vfs_types.h" | 12 | #include "core/file_sys/vfs_types.h" |
| 14 | #include "core/hle/kernel/object.h" | 13 | #include "core/hle/kernel/object.h" |
| @@ -98,6 +97,8 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, | |||
| 98 | 97 | ||
| 99 | class System { | 98 | class System { |
| 100 | public: | 99 | public: |
| 100 | using CurrentBuildProcessID = std::array<u8, 0x20>; | ||
| 101 | |||
| 101 | System(const System&) = delete; | 102 | System(const System&) = delete; |
| 102 | System& operator=(const System&) = delete; | 103 | System& operator=(const System&) = delete; |
| 103 | 104 | ||
| @@ -330,9 +331,9 @@ public: | |||
| 330 | 331 | ||
| 331 | bool GetExitLock() const; | 332 | bool GetExitLock() const; |
| 332 | 333 | ||
| 333 | void SetCurrentProcessBuildID(std::array<u8, 0x20> id); | 334 | void SetCurrentProcessBuildID(const CurrentBuildProcessID& id); |
| 334 | 335 | ||
| 335 | const std::array<u8, 0x20>& GetCurrentProcessBuildID() const; | 336 | const CurrentBuildProcessID& GetCurrentProcessBuildID() const; |
| 336 | 337 | ||
| 337 | private: | 338 | private: |
| 338 | System(); | 339 | System(); |
| @@ -357,8 +358,4 @@ private: | |||
| 357 | static System s_instance; | 358 | static System s_instance; |
| 358 | }; | 359 | }; |
| 359 | 360 | ||
| 360 | inline Kernel::Process* CurrentProcess() { | ||
| 361 | return System::GetInstance().CurrentProcess(); | ||
| 362 | } | ||
| 363 | |||
| 364 | } // namespace Core | 361 | } // namespace Core |