summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar archshift2014-08-16 23:31:25 -0700
committerGravatar archshift2014-08-16 23:31:25 -0700
commit9a4e58c3700240b9846b4a6810548d92f4208b35 (patch)
tree483a0bf2e537512e615b2cbdba7a42c42558d552 /src
parentMerge pull request #47 from archshift/stdstring (diff)
downloadyuzu-9a4e58c3700240b9846b4a6810548d92f4208b35.tar.gz
yuzu-9a4e58c3700240b9846b4a6810548d92f4208b35.tar.xz
yuzu-9a4e58c3700240b9846b4a6810548d92f4208b35.zip
Removed redundant loop in EmuThread::run()
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/bootmanager.cpp17
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