all repos — mgba @ 4889a3e4022adfc0dab8c22c642bdf76260bd1ea

mGBA Game Boy Advance Emulator

DS: Fix firmware loading
Jeffrey Pfau jeffrey@endrift.com
Thu, 16 Mar 2017 13:14:33 -0700
commit

4889a3e4022adfc0dab8c22c642bdf76260bd1ea

parent

e84e2ac6271383cb279a4e97c0e204441116a405

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M src/ds/ds.csrc/ds/ds.c

@@ -573,10 +573,7 @@ void* data = NULL;

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