diff options
| -rw-r--r-- | src/citra_qt/bootmanager.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index b0aa1e561..250df59f8 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp | |||
| @@ -32,17 +32,14 @@ void EmuThread::run() | |||
| 32 | { | 32 | { |
| 33 | while (true) | 33 | while (true) |
| 34 | { | 34 | { |
| 35 | for (int tight_loop = 0; tight_loop < 10000; ++tight_loop) | 35 | if (cpu_running || exec_cpu_step) |
| 36 | { | 36 | { |
| 37 | if (cpu_running || exec_cpu_step) | 37 | if (exec_cpu_step) |
| 38 | { | 38 | exec_cpu_step = false; |
| 39 | if (exec_cpu_step) | 39 | |
| 40 | exec_cpu_step = false; | 40 | Core::SingleStep(); |
| 41 | 41 | if (!cpu_running) | |
| 42 | Core::SingleStep(); | 42 | emit CPUStepped(); |
| 43 | if (!cpu_running) | ||
| 44 | emit CPUStepped(); | ||
| 45 | } | ||
| 46 | } | 43 | } |
| 47 | } | 44 | } |
| 48 | 45 | ||