diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-25 10:30:23 -0400 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 11:35:07 -0400 |
commit | 9e4b9f1afdb93bab7640e9d04cc2e28b9c48a288 (patch) | |
tree | ae85a887e1f4d60ba4fe26213448c91714b4f378 /src | |
parent | e31425df3877636c098ec7426ebd2067920715cb (diff) |
YuzuCMD/Tester: Correct execution
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 7 | ||||
-rw-r--r-- | src/yuzu_tester/yuzu.cpp | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 1e5377840d..38ffdfbd33 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -236,9 +236,10 @@ int main(int argc, char** argv) { system.Renderer().Rasterizer().LoadDiskResources(); std::thread render_thread([&emu_window] { emu_window->Present(); }); - while (emu_window->IsOpen()) { - //system.RunLoop(); - } + system.Run(); + while (emu_window->IsOpen()) + ; + system.Pause(); render_thread.join(); system.Shutdown(); diff --git a/src/yuzu_tester/yuzu.cpp b/src/yuzu_tester/yuzu.cpp index 1a45506d46..d62686dd27 100644 --- a/src/yuzu_tester/yuzu.cpp +++ b/src/yuzu_tester/yuzu.cpp @@ -255,9 +255,10 @@ int main(int argc, char** argv) { system.GPU().Start(); system.Renderer().Rasterizer().LoadDiskResources(); - while (!finished) { - //system.RunLoop(); - } + system.Run(); + while (!finished) + ; + system.Pause(); detached_tasks.WaitForAllTasks(); return return_value; |