mirror of https://github.com/mgba-emu/mgba.git
Libretro: Fix disabling BIOS
This commit is contained in:
parent
2d02719fa5
commit
19b164d560
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue