summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-10-14 20:21:15 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-10-15 23:34:48 +0200
commitb6719094e69bba468ecbc275fd892c4d412b92a3 (patch)
tree633d5621300ec64c6ed2a2e7cfdff587d5462c0a /src/core/core.cpp
parentMerge pull request #7183 from FearlessTobi/translation-ci (diff)
downloadyuzu-b6719094e69bba468ecbc275fd892c4d412b92a3.tar
yuzu-b6719094e69bba468ecbc275fd892c4d412b92a3.tar.gz
yuzu-b6719094e69bba468ecbc275fd892c4d412b92a3.tar.bz2
yuzu-b6719094e69bba468ecbc275fd892c4d412b92a3.tar.lz
yuzu-b6719094e69bba468ecbc275fd892c4d412b92a3.tar.xz
yuzu-b6719094e69bba468ecbc275fd892c4d412b92a3.tar.zst
yuzu-b6719094e69bba468ecbc275fd892c4d412b92a3.zip
Diffstat (limited to '')
-rw-r--r--src/core/core.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index bb268a319..ae1d56b27 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -428,21 +428,8 @@ struct System::Impl {
};
System::System() : impl{std::make_unique<Impl>(*this)} {}
-System::~System() = default;
-
-System& System::GetInstance() {
- if (!s_instance) {
- throw std::runtime_error("Using System instance before its initialization");
- }
- return *s_instance;
-}
-void System::InitializeGlobalInstance() {
- if (s_instance) {
- throw std::runtime_error("Reinitializing Global System instance.");
- }
- s_instance = std::unique_ptr<System>(new System);
-}
+System::~System() = default;
CpuManager& System::GetCpuManager() {
return impl->cpu_manager;