aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-07-23 21:27:45 +0200
committerArisotura <thetotalworm@gmail.com>2020-07-23 21:27:45 +0200
commitac8f44125b1431b38c4d2470919a6377fd208d0f (patch)
treece4abf04702064ac5c4d0c3873cb1b20a175b820
parente85d2e2cf3439a79305f7132fbcd9774385e9020 (diff)
I'm a derp
-rw-r--r--src/frontend/qt_sdl/EmuSettingsDialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontend/qt_sdl/EmuSettingsDialog.cpp b/src/frontend/qt_sdl/EmuSettingsDialog.cpp
index 77301b7..64950e8 100644
--- a/src/frontend/qt_sdl/EmuSettingsDialog.cpp
+++ b/src/frontend/qt_sdl/EmuSettingsDialog.cpp
@@ -98,6 +98,7 @@ void EmuSettingsDialog::verifyFirmware()
char filename[1024];
strncpy(filename, ui->txtFirmwarePath->text().toStdString().c_str(), 1023); filename[1023] = '\0';
FILE* f = Platform::OpenLocalFile(filename, "rb");
+ if (!f) return;
u8 chk1[0x180], chk2[0x180];
fseek(f, 0, SEEK_SET);
@@ -163,8 +164,8 @@ void EmuSettingsDialog::done(int r)
|| strcmp(Config::DSiNANDPath, dsiNANDPath.c_str()) != 0)
{
if (RunningSomething
- && QMessageBox::warning(this, "Reset necessary to apply changes",
- "The emulation will be reset for the changes to take place",
+ && QMessageBox::warning(this, "Reset necessary to apply changes",
+ "The emulation will be reset for the changes to take place",
QMessageBox::Yes, QMessageBox::Cancel) != QMessageBox::Yes)
return;
@@ -290,4 +291,4 @@ void EmuSettingsDialog::on_chkEnableJIT_toggled()
ui->chkJITLiteralOptimisations->setDisabled(disabled);
ui->chkJITFastMemory->setDisabled(disabled);
ui->spnJITMaximumBlockSize->setDisabled(disabled);
-} \ No newline at end of file
+}