all repos — mgba @ e9fe4a1a9a7e005c8f846dc501798db8a628a574

mGBA Game Boy Advance Emulator

GBA Core: Add loadBIOS
Jeffrey Pfau jeffrey@endrift.com
Sun, 07 Feb 2016 03:38:55 -0800
commit

e9fe4a1a9a7e005c8f846dc501798db8a628a574

parent

5e75c94967e295531e46818eedb22ccb3efbbcf8

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M src/gba/core.csrc/gba/core.c

@@ -118,6 +118,15 @@ static bool _GBACoreLoadROM(struct mCore* core, struct VFile* vf) {

return GBALoadROM2(core->board, vf); } +static bool _GBACoreLoadBIOS(struct mCore* core, struct VFile* vf, int type) { + UNUSED(type); + if (!GBAIsBIOS(vf)) { + return false; + } + GBALoadBIOS(core->board, vf); + return true; +} + static bool _GBACoreLoadSave(struct mCore* core, struct VFile* vf) { return GBALoadSave(core->board, vf); }

@@ -233,6 +242,7 @@ core->setVideoBuffer = _GBACoreSetVideoBuffer;

core->getAudioChannel = _GBACoreGetAudioChannel; core->isROM = GBAIsROM; core->loadROM = _GBACoreLoadROM; + core->loadBIOS = _GBACoreLoadBIOS; core->loadSave = _GBACoreLoadSave; core->loadPatch = _GBACoreLoadPatch; core->unloadROM = _GBACoreUnloadROM;