From e4aed77f1e9405c64afefaaff4f929388c7c7e54 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 7 Feb 2016 14:27:45 -0800 Subject: [PATCH] GBA Core: Fix BIOS loading --- src/gba/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gba/core.c b/src/gba/core.c index 2782179f2..0ca33e567 100644 --- a/src/gba/core.c +++ b/src/gba/core.c @@ -75,7 +75,9 @@ static void _GBACoreLoadConfig(struct mCore* core) { if (core->opts.useBios) { bios = VFileOpen(core->opts.bios, O_RDONLY); } - GBALoadBIOS(gba, bios); + if (bios) { + GBALoadBIOS(gba, bios); + } #endif const char* idleOptimization = mCoreConfigGetValue(&core->config, "idleOptimization");