summaryrefslogtreecommitdiffstats
path: root/src/core/core.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-05-03 06:16:12 +0200
committerbunnei <bunneidev@gmail.com>2018-05-11 01:34:47 +0200
commitcba69fdcd439c5f225bbddf1dad70e6326edd0dc (patch)
treeb608addf14d16c634cbe99a04e7931adfb2dbf31 /src/core/core.h
parentcore: Implement multicore support. (diff)
downloadyuzu-cba69fdcd439c5f225bbddf1dad70e6326edd0dc.tar
yuzu-cba69fdcd439c5f225bbddf1dad70e6326edd0dc.tar.gz
yuzu-cba69fdcd439c5f225bbddf1dad70e6326edd0dc.tar.bz2
yuzu-cba69fdcd439c5f225bbddf1dad70e6326edd0dc.tar.lz
yuzu-cba69fdcd439c5f225bbddf1dad70e6326edd0dc.tar.xz
yuzu-cba69fdcd439c5f225bbddf1dad70e6326edd0dc.tar.zst
yuzu-cba69fdcd439c5f225bbddf1dad70e6326edd0dc.zip
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 3e0a7e6a7..561e7b48f 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -92,7 +92,7 @@ public:
* @returns True if the emulated system is powered on, otherwise false.
*/
bool IsPoweredOn() const {
- return cpu_cores[0] != nullptr;
+ return cpu_barrier && cpu_barrier->IsAlive();
}
/**