mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 11:29:07 +01:00
YuzuCMD/Tester: Correct execution
This commit is contained in:
parent
e31425df38
commit
9e4b9f1afd
2 changed files with 8 additions and 6 deletions
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue