YuzuCMD/Tester: Correct execution

This commit is contained in:
Fernando Sahmkow 2020-02-25 10:30:23 -04:00
parent e31425df38
commit 9e4b9f1afd
2 changed files with 8 additions and 6 deletions

View File

@ -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();

View File

@ -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;