VERY experimental Nintendo Switch 2 emulator
C++
YuzuCMD/Tester: Correct execution
Fernando Sahmkow71cb6973142e
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cppindex 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.cppindex 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;