summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-11-26 00:44:53 +0100
committerGitHub <noreply@github.com>2020-11-26 00:44:53 +0100
commit0e15c68f54ae5217e6247603b9e31757515f89e1 (patch)
tree5547698f9917260b0172298b9c2219a399063987 /src/yuzu_cmd/yuzu.cpp
parentMerge pull request #4946 from ameerj/alpha-test (diff)
parentOverhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread (diff)
downloadyuzu-0e15c68f54ae5217e6247603b9e31757515f89e1.tar
yuzu-0e15c68f54ae5217e6247603b9e31757515f89e1.tar.gz
yuzu-0e15c68f54ae5217e6247603b9e31757515f89e1.tar.bz2
yuzu-0e15c68f54ae5217e6247603b9e31757515f89e1.tar.lz
yuzu-0e15c68f54ae5217e6247603b9e31757515f89e1.tar.xz
yuzu-0e15c68f54ae5217e6247603b9e31757515f89e1.tar.zst
yuzu-0e15c68f54ae5217e6247603b9e31757515f89e1.zip
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 14a23c71b..ba6e89249 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -242,7 +242,7 @@ int main(int argc, char** argv) {
void(system.Run());
while (emu_window->IsOpen()) {
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
+ emu_window->WaitEvent();
}
void(system.Pause());
system.Shutdown();