2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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(); system.Renderer().Rasterizer().LoadDiskResources();
std::thread render_thread([&emu_window] { emu_window->Present(); }); std::thread render_thread([&emu_window] { emu_window->Present(); });
while (emu_window->IsOpen()) { system.Run();
//system.RunLoop(); while (emu_window->IsOpen())
} ;
system.Pause();
render_thread.join(); render_thread.join();
system.Shutdown(); system.Shutdown();

View file

@ -255,9 +255,10 @@ int main(int argc, char** argv) {
system.GPU().Start(); system.GPU().Start();
system.Renderer().Rasterizer().LoadDiskResources(); system.Renderer().Rasterizer().LoadDiskResources();
while (!finished) { system.Run();
//system.RunLoop(); while (!finished)
} ;
system.Pause();
detached_tasks.WaitForAllTasks(); detached_tasks.WaitForAllTasks();
return return_value; return return_value;