Skip to content

Commit

Permalink
Libretro: Fix disabling BIOS
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Dec 29, 2016
1 parent 60ef8e0 commit b86b408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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:
- PSP2: Improved controller rumble
- GB, GBA: Prevent loading null ROMs
Expand Down
2 changes: 1 addition & 1 deletion src/platform/libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b86b408

Please sign in to comment.