From 0c69e05eb1f52b42692f9d1d15a3250f5a2e75ae Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 18 Jun 2016 21:00:01 -0500 Subject: [PATCH] Handle load requests made by the guest --- src/xenia/app/xenia_main.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/xenia/app/xenia_main.cc b/src/xenia/app/xenia_main.cc index be963f06d..4974ca043 100644 --- a/src/xenia/app/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -203,7 +203,15 @@ int xenia_main(const std::vector& args) { // emulation. while (!exiting) { xe::threading::Wait(evt.get(), false); - emulator->WaitUntilExit(); + + while (true) { + emulator->WaitUntilExit(); + if (emulator->TitleRequested()) { + emulator->LaunchNextTitle(); + } else { + break; + } + } } debug_window.reset();