* Implement settings-only mode
* Show correct directory to place ROMs in on macOS
This commit is contained in:
@@ -101,9 +101,16 @@ int main(int argc, char* argv[]) {
|
||||
#endif
|
||||
elapsed_timer.start();
|
||||
|
||||
pc_init(argc, argv);
|
||||
if (!pc_init(argc, argv))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (! pc_init_modules()) {
|
||||
#ifdef Q_OS_MACOS
|
||||
ui_msgbox_header(MBX_FATAL, VC(L"No ROMs found."), VC(L"86Box could not find any usable ROM images.\n\nPlease <a href='https://github.com/86Box/roms/releases/latest'>download</a> a ROM set and extract it into the \"~/Library/Application Support/net.86box.86box/roms\" directory."));
|
||||
#else
|
||||
ui_msgbox_header(MBX_FATAL, VC(L"No ROMs found."), VC(L"86Box could not find any usable ROM images.\n\nPlease <a href='https://github.com/86Box/roms/releases/latest'>download</a> a ROM set and extract it into the \"roms\" directory."));
|
||||
#endif
|
||||
return 6;
|
||||
}
|
||||
|
||||
@@ -134,6 +141,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
/* Set the PAUSE mode depending on the renderer. */
|
||||
// plat_pause(0);
|
||||
if (settings_only) dopause = 1;
|
||||
QTimer onesec;
|
||||
QObject::connect(&onesec, &QTimer::timeout, &app, [] {
|
||||
pc_onesec();
|
||||
|
||||
@@ -374,6 +374,10 @@ void MainWindow::on_actionSettings_triggered() {
|
||||
break;
|
||||
}
|
||||
plat_pause(currentPause);
|
||||
if (settings_only) {
|
||||
cpu_thread_run = 0;
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
std::array<uint32_t, 256> x11_to_xt_base
|
||||
@@ -1027,7 +1031,8 @@ void MainWindow::on_actionHardware_Renderer_OpenGL_ES_triggered() {
|
||||
|
||||
void MainWindow::focusInEvent(QFocusEvent* event)
|
||||
{
|
||||
this->grabKeyboard();
|
||||
if (settings_only) ui->actionSettings->trigger();
|
||||
else this->grabKeyboard();
|
||||
}
|
||||
|
||||
void MainWindow::focusOutEvent(QFocusEvent* event)
|
||||
|
||||
Reference in New Issue
Block a user