DS: Fix firmware loading

This commit is contained in:
Jeffrey Pfau 2017-03-16 13:14:33 -07:00
parent e84e2ac627
commit 4889a3e402
1 changed files with 1 additions and 4 deletions

View File

@ -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");