UI: Prevent race condition during emulator startup.

This commit is contained in:
Parker Lamb
2017-07-01 14:36:16 -05:00
parent 0c20f1c0fc
commit fc27b34304
6 changed files with 47 additions and 0 deletions

View File

@@ -266,6 +266,8 @@ bool EmulatorWindow::Initialize() {
window_->Resize(1280, 720);
window_->DisableMainMenu();
return true;
}

View File

@@ -178,6 +178,9 @@ int xenia_main(const std::vector<std::wstring>& args) {
evt->Set();
});
// Enable the main menu now that the emulator is properly loaded
emulator_window->window()->EnableMainMenu();
// Grab path from the flag or unnamed argument.
std::wstring path;
if (!FLAGS_target.empty() || args.size() >= 2) {