aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-18 18:55:58 -0700
committerGitHub <noreply@github.com>2018-07-18 18:55:58 -0700
commit5ab4dc3e1e41e7a5dd83abb9ad2b8e2bbdc0ef20 (patch)
tree141c8d3c09f9eca021dddedb17cdc3cc6607a19a /src/core/core.cpp
parentc2109ba58ee3cd7db127e1cdf21d38ab33e2ab2f (diff)
parent74185c108eeee0d8deb45c0855780434f8e4936d (diff)
Merge pull request #687 from lioncash/instance
core: Don't construct instance of Core::System, just to access its live instance
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 82db5cccff..9bd9f4bd95 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -26,11 +26,13 @@ namespace Core {
/*static*/ System System::s_instance;
+System::System() = default;
+
System::~System() = default;
/// Runs a CPU core while the system is powered on
static void RunCpuCore(std::shared_ptr<Cpu> cpu_state) {
- while (Core::System().GetInstance().IsPoweredOn()) {
+ while (Core::System::GetInstance().IsPoweredOn()) {
cpu_state->RunLoop(true);
}
}