Merge branch 'master' of ssh://github.com/86Box/86Box into cleanup30

This commit is contained in:
RichardG867
2022-02-11 22:47:36 -03:00
3 changed files with 28 additions and 13 deletions

View File

@@ -1602,7 +1602,7 @@ ide_writeb(uint16_t addr, uint8_t val, void *priv)
if (ide->type == IDE_ATAPI)
ide->sc->status = DRDY_STAT;
else
ide->atastat = BSY_STAT;
ide->atastat = READY_STAT | BSY_STAT;
if (ide->type == IDE_ATAPI)
ide->sc->callback = 100.0 * IDE_TIME;

View File

@@ -26,6 +26,8 @@
#include <QTranslator>
#include <QDirIterator>
#include <QLibraryInfo>
#include <QString>
#include <QFont>
#ifdef QT_STATIC
/* Static builds need plugin imports */
@@ -139,6 +141,11 @@ int main(int argc, char* argv[]) {
#endif
QApplication app(argc, argv);
QLocale::setDefault(QLocale::C);
#ifdef Q_OS_WINDOWS
auto font_name = QObject::tr("FONT_NAME");
auto font_size = QObject::tr("FONT_SIZE");
QApplication::setFont(QFont(font_name, font_size.toInt()));
#endif
qt_set_sequence_auto_mnemonic(false);
Q_INIT_RESOURCE(qt_resources);
Q_INIT_RESOURCE(qt_translations);

View File

@@ -1012,6 +1012,13 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_SHUTDOWN:
if (manager_wm)
break;
if (LOWORD(wParam) == 1) {
confirm_exit = 0;
nvr_save();
config_save();
KillTimer(hwnd, TIMER_1SEC);
PostQuitMessage(0);
} else {
win_notify_dlg_open();
if (confirm_exit && confirm_exit_cmdl)
i = ui_msgbox_ex(MBX_QUESTION_YN | MBX_DONTASK, (wchar_t *) IDS_2113, NULL, (wchar_t *) IDS_2119, (wchar_t *) IDS_2136, NULL);
@@ -1027,6 +1034,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
PostQuitMessage(0);
}
win_notify_dlg_closed();
}
break;
case WM_CTRLALTDEL: