QT: Restore RichardG's hard reset workaround.
This commit is contained in:
@@ -153,6 +153,7 @@ extern int enable_discord; /* (C) enable Discord integration */
|
||||
extern int other_ide_present; /* IDE controllers from non-IDE cards are present */
|
||||
extern int other_scsi_present; /* SCSI controllers from non-SCSI cards are present */
|
||||
|
||||
extern int hard_reset_pending;
|
||||
extern int fixed_size_x;
|
||||
extern int fixed_size_y;
|
||||
extern int do_auto_pause; /* (C) Auto-pause the emulator on focus loss */
|
||||
|
@@ -138,8 +138,17 @@ main_thread_fn()
|
||||
}
|
||||
} else {
|
||||
/* Just so we dont overload the host OS. */
|
||||
|
||||
/* Trigger a hard reset if one is pending. */
|
||||
if (hard_reset_pending) {
|
||||
hard_reset_pending = 0;
|
||||
pc_reset_hard_close();
|
||||
pc_reset_hard_init();
|
||||
}
|
||||
|
||||
if (dopause)
|
||||
ack_pause();
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
}
|
||||
|
@@ -946,10 +946,9 @@ MainWindow::on_actionSettings_triggered()
|
||||
default:
|
||||
break;
|
||||
case QDialog::Accepted:
|
||||
pc_reset_hard_close();
|
||||
settings.save();
|
||||
config_changed = 2;
|
||||
pc_reset_hard_init();
|
||||
pc_reset_hard();
|
||||
break;
|
||||
case QDialog::Rejected:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user