all repos — mgba @ 19b164d560f6382b2e8ee55cc8a6eec22951ae29

mGBA Game Boy Advance Emulator

Libretro: Fix disabling BIOS
Jeffrey Pfau jeffrey@endrift.com
Wed, 28 Dec 2016 19:16:33 -0800
commit

19b164d560f6382b2e8ee55cc8a6eec22951ae29

parent

2d02719fa57d4e4a33168955a8e0c34dfabc301a

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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);