GBA Core: Fix BIOS loading

This commit is contained in:
Jeffrey Pfau 2016-02-07 14:27:45 -08:00
parent e775c5900d
commit e4aed77f1e
1 changed files with 3 additions and 1 deletions

View File

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