mirror of https://github.com/mgba-emu/mgba.git
DS: Fix DS9 BIOS size
This commit is contained in:
parent
c483a402e9
commit
46540f1321
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue