summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/core/core.h b/src/core/core.h
index a796472b2..cae578c69 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -108,22 +108,16 @@ class System {
108public: 108public:
109 using CurrentBuildProcessID = std::array<u8, 0x20>; 109 using CurrentBuildProcessID = std::array<u8, 0x20>;
110 110
111 explicit System();
112
113 ~System();
114
111 System(const System&) = delete; 115 System(const System&) = delete;
112 System& operator=(const System&) = delete; 116 System& operator=(const System&) = delete;
113 117
114 System(System&&) = delete; 118 System(System&&) = delete;
115 System& operator=(System&&) = delete; 119 System& operator=(System&&) = delete;
116 120
117 ~System();
118
119 /**
120 * Gets the instance of the System singleton class.
121 * @returns Reference to the instance of the System singleton class.
122 */
123 [[deprecated("Use of the global system instance is deprecated")]] static System& GetInstance();
124
125 static void InitializeGlobalInstance();
126
127 /// Enumeration representing the return values of the System Initialize and Load process. 121 /// Enumeration representing the return values of the System Initialize and Load process.
128 enum class ResultStatus : u32 { 122 enum class ResultStatus : u32 {
129 Success, ///< Succeeded 123 Success, ///< Succeeded
@@ -403,12 +397,8 @@ public:
403 void ApplySettings(); 397 void ApplySettings();
404 398
405private: 399private:
406 System();
407
408 struct Impl; 400 struct Impl;
409 std::unique_ptr<Impl> impl; 401 std::unique_ptr<Impl> impl;
410
411 inline static std::unique_ptr<System> s_instance{};
412}; 402};
413 403
414} // namespace Core 404} // namespace Core