summaryrefslogtreecommitdiffstats
path: root/src/core/system.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-09-01 04:20:54 +0200
committerGitHub <noreply@github.com>2016-09-01 04:20:54 +0200
commit09063dc5bb1e2b769c10077bf820a5300494c119 (patch)
treead997ee86470e23e9dfa67a1d9824a57cdcf5571 /src/core/system.cpp
parentMerge pull request #2035 from MerryMage/disable-stretch (diff)
parentqt: Rename all "toogle" to "toggle". (diff)
downloadyuzu-09063dc5bb1e2b769c10077bf820a5300494c119.tar
yuzu-09063dc5bb1e2b769c10077bf820a5300494c119.tar.gz
yuzu-09063dc5bb1e2b769c10077bf820a5300494c119.tar.bz2
yuzu-09063dc5bb1e2b769c10077bf820a5300494c119.tar.lz
yuzu-09063dc5bb1e2b769c10077bf820a5300494c119.tar.xz
yuzu-09063dc5bb1e2b769c10077bf820a5300494c119.tar.zst
yuzu-09063dc5bb1e2b769c10077bf820a5300494c119.zip
Diffstat (limited to 'src/core/system.cpp')
-rw-r--r--src/core/system.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/system.cpp b/src/core/system.cpp
index 4a4757af3..4fc266cb0 100644
--- a/src/core/system.cpp
+++ b/src/core/system.cpp
@@ -17,6 +17,8 @@
namespace System {
+static bool is_powered_on{ false };
+
Result Init(EmuWindow* emu_window) {
Core::Init();
CoreTiming::Init();
@@ -30,9 +32,15 @@ Result Init(EmuWindow* emu_window) {
AudioCore::Init();
GDBStub::Init();
+ is_powered_on = true;
+
return Result::Success;
}
+bool IsPoweredOn() {
+ return is_powered_on;
+}
+
void Shutdown() {
GDBStub::Shutdown();
AudioCore::Shutdown();
@@ -42,6 +50,8 @@ void Shutdown() {
HW::Shutdown();
CoreTiming::Shutdown();
Core::Shutdown();
+
+ is_powered_on = false;
}
} // namespace