Merge pull request #687 from lioncash/instance

core: Don't construct instance of Core::System, just to access its live instance
This commit is contained in:
bunnei authored and GitHub committed 2018-07-18 18:55:58 -07:00
commit 49b0966003
6 files changed
+26 -22

No files matched your search

+3 -1
View File
@@ -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);
}
}