mirror of https://github.com/mgba-emu/mgba.git
DS: Fix firmware loading
This commit is contained in:
parent
e84e2ac627
commit
4889a3e402
|
@ -573,10 +573,7 @@ bool DSLoadFirmware(struct DS* ds, struct VFile* vf) {
|
|||
if (!DSIsFirmware(vf)) {
|
||||
return false;
|
||||
}
|
||||
if (size == DS_SIZE_FIRMWARE) {
|
||||
data = vf->map(vf, size, MAP_WRITE);
|
||||
}
|
||||
if (!data) {
|
||||
if (size != DS_SIZE_FIRMWARE) {
|
||||
return false;
|
||||
}
|
||||
mLOG(DS, INFO, "Found DS firmware");
|
||||
|
|
Loading…
Reference in New Issue