Libretro: Fix disabling BIOS

This commit is contained in:
Jeffrey Pfau 2016-12-28 19:16:33 -08:00
parent 2d02719fa5
commit 19b164d560
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ Bugfixes:
- 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

View File

@ -413,7 +413,7 @@ bool retro_load_game(const struct retro_game_info* game) {
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);