all repos — mgba @ e4aed77f1e9405c64afefaaff4f929388c7c7e54

mGBA Game Boy Advance Emulator

GBA Core: Fix BIOS loading
Jeffrey Pfau jeffrey@endrift.com
Sun, 07 Feb 2016 14:27:45 -0800
commit

e4aed77f1e9405c64afefaaff4f929388c7c7e54

parent

e775c5900de2975e89f39dcf10593fd076f7bfae

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

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

@@ -75,7 +75,9 @@ struct VFile* bios = 0;

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");