Libretro: Fix disabling BIOS
Jeffrey Pfau jeffrey@endrift.com
Wed, 28 Dec 2016 19:16:33 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -44,6 +44,7 @@ - GBA I/O: Mask off WAITCNT bits that cannot be written
- GB Memory: Fix HDMA5 value after DMA completes - GB Video: Hblank IRQs should mask LYC=LY IRQs - GB Audio: Reset envelope timer when reseting sound channel + - Libretro: Fix disabling BIOS Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M
src/platform/libretro/libretro.c
→
src/platform/libretro/libretro.c
@@ -413,7 +413,7 @@ struct GBA* gba = core->board;
gba->luminanceSource = &lux; const char* sysDir = 0; - if (environCallback(RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY, &sysDir)) { + if (core->opts.useBios && environCallback(RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY, &sysDir)) { char biosPath[PATH_MAX]; snprintf(biosPath, sizeof(biosPath), "%s%s%s", sysDir, PATH_SEP, "gba_bios.bin"); struct VFile* bios = VFileOpen(biosPath, O_RDONLY);