DS: Fix DS9 BIOS size

This commit is contained in:
Vicki Pfau 2017-02-17 13:04:01 -08:00
parent c483a402e9
commit 46540f1321
1 changed files with 3 additions and 0 deletions

View File

@ -416,6 +416,9 @@ bool DSLoadBIOS(struct DS* ds, struct VFile* vf) {
if (size == DS7_SIZE_BIOS) {
data = vf->map(vf, size, MAP_READ);
} else if (size == 0x1000) {
data = calloc(DS9_SIZE_BIOS, 1);
vf->read(vf, data, size);
} else if (size == DS9_SIZE_BIOS) {
data = vf->map(vf, size, MAP_READ);
}
if (!data) {