handle messageboxes inside qt's thread

This commit is contained in:
Joakim L. Gilje
2021-11-29 12:25:27 +01:00
parent 97d844c3fc
commit 238fb7ef62
4 changed files with 12 additions and 11 deletions

View File

@@ -77,15 +77,14 @@ int main(int argc, char* argv[]) {
QApplication app(argc, argv);
elapsed_timer.start();
main_window = new MainWindow();
main_window->show();
pc_init(argc, argv);
if (! pc_init_modules()) {
ui_msgbox_header(MBX_FATAL, VC(L"No ROMs found."), VC(L"86Box could not find any usable ROM images.\n\nPlease download a ROM set and extract it into the \"roms\" directory."));
return 6;
}
main_window = new MainWindow();
main_window->show();
pc_reset_hard_init();
/* Set the PAUSE mode depending on the renderer. */