I'm a derp
This commit is contained in:
parent
e85d2e2cf3
commit
ac8f44125b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue