all repos — mgba @ 3ccffdc29eab88906a6cbb9d686f474261da4e16

mGBA Game Boy Advance Emulator

DS Core: Don't attempt to reload BIOS and firmware if already loaded
Vicki Pfau vi@endrift.com
Mon, 20 Jul 2020 09:13:37 -0700
commit

3ccffdc29eab88906a6cbb9d686f474261da4e16

parent

39df2d1a5c7e271c5b7a7de85eb78f81e494a295

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

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

@@ -319,9 +319,9 @@ struct VFile* bios7 = NULL;

struct VFile* bios9 = NULL; struct VFile* firm = NULL; if (core->opts.useBios) { - bool found7 = false; - bool found9 = false; - bool foundFirm = false; + bool found7 = !!ds->bios7Vf; + bool found9 = !!ds->bios9Vf; + bool foundFirm = !!ds->firmwareVf; if (!found7) { const char* configPath = mCoreConfigGetValue(&core->config, "ds.bios7");