mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
I'm a derp
This commit is contained in:
@ -98,6 +98,7 @@ void EmuSettingsDialog::verifyFirmware()
|
|||||||
char filename[1024];
|
char filename[1024];
|
||||||
strncpy(filename, ui->txtFirmwarePath->text().toStdString().c_str(), 1023); filename[1023] = '\0';
|
strncpy(filename, ui->txtFirmwarePath->text().toStdString().c_str(), 1023); filename[1023] = '\0';
|
||||||
FILE* f = Platform::OpenLocalFile(filename, "rb");
|
FILE* f = Platform::OpenLocalFile(filename, "rb");
|
||||||
|
if (!f) return;
|
||||||
u8 chk1[0x180], chk2[0x180];
|
u8 chk1[0x180], chk2[0x180];
|
||||||
|
|
||||||
fseek(f, 0, SEEK_SET);
|
fseek(f, 0, SEEK_SET);
|
||||||
@ -163,8 +164,8 @@ void EmuSettingsDialog::done(int r)
|
|||||||
|| strcmp(Config::DSiNANDPath, dsiNANDPath.c_str()) != 0)
|
|| strcmp(Config::DSiNANDPath, dsiNANDPath.c_str()) != 0)
|
||||||
{
|
{
|
||||||
if (RunningSomething
|
if (RunningSomething
|
||||||
&& QMessageBox::warning(this, "Reset necessary to apply changes",
|
&& QMessageBox::warning(this, "Reset necessary to apply changes",
|
||||||
"The emulation will be reset for the changes to take place",
|
"The emulation will be reset for the changes to take place",
|
||||||
QMessageBox::Yes, QMessageBox::Cancel) != QMessageBox::Yes)
|
QMessageBox::Yes, QMessageBox::Cancel) != QMessageBox::Yes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -290,4 +291,4 @@ void EmuSettingsDialog::on_chkEnableJIT_toggled()
|
|||||||
ui->chkJITLiteralOptimisations->setDisabled(disabled);
|
ui->chkJITLiteralOptimisations->setDisabled(disabled);
|
||||||
ui->chkJITFastMemory->setDisabled(disabled);
|
ui->chkJITFastMemory->setDisabled(disabled);
|
||||||
ui->spnJITMaximumBlockSize->setDisabled(disabled);
|
ui->spnJITMaximumBlockSize->setDisabled(disabled);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user