From 46540f1321a6d69be9cba6c30bf285c4fbe08448 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 17 Feb 2017 13:04:01 -0800 Subject: [PATCH] DS: Fix DS9 BIOS size --- src/ds/ds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ds/ds.c b/src/ds/ds.c index 249467b71..784242bd5 100644 --- a/src/ds/ds.c +++ b/src/ds/ds.c @@ -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) {