aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-06-05 00:26:48 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-06-05 00:26:48 -0400
commit174cc9a0ed023ca89420fbc999ed82337cc94b8b (patch)
tree77880fcb4200aea1921919dc850f1f90897a9657 /src/core/core.cpp
parent6cdad8390c20aed5c526916816388831d71213a2 (diff)
hle: added a hokey way to force a thread reschedule during CPU single step mode (as used by the debugger)
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 070f92ed..0500394b 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -13,6 +13,7 @@
#include "core/arm/disassembler/arm_disasm.h"
#include "core/arm/interpreter/arm_interpreter.h"
+#include "core/hle/hle.h"
#include "core/hle/kernel/thread.h"
namespace Core {
@@ -36,7 +37,7 @@ void SingleStep() {
g_app_core->Step();
- if (ticks >= LCD::kFrameTicks / 2) {
+ if ((ticks >= LCD::kFrameTicks / 2) || HLE::g_reschedule) {
HW::Update();
Kernel::Reschedule();
ticks = 0;