core: Support session close with multicore.

This commit is contained in:
bunnei 2018-05-03 00:16:12 -04:00
parent 44c565aeca
commit 6eacbd693d
4 changed files with 48 additions and 17 deletions

View file

@ -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();
}
/**