yuzu crash on pause in single-thread mode

Fix yuzu crash on pause in single-thread mode #544
This commit is contained in:
NekokoTime
2018-06-08 09:15:32 -03:00
committed by GitHub
parent 5aff2d38a9
commit 14a08b842a

View File

@@ -44,7 +44,7 @@ Cpu& System::CurrentCpuCore() {
}
// Otherwise, use single-threaded mode active_core variable
return *cpu_cores[active_core];
return *cpu_cores[active_core = 4];
}
System::ResultStatus System::RunLoop(bool tight_loop) {
@@ -68,7 +68,7 @@ System::ResultStatus System::RunLoop(bool tight_loop) {
}
}
for (active_core = 0; active_core < NUM_CPU_CORES; ++active_core) {
for (active_core = 0; active_core < NUM_CPU_CORES; ++active_core) {
cpu_cores[active_core]->RunLoop(tight_loop);
if (Settings::values.use_multi_core) {
// Cores 1-3 are run on other threads in this mode