GBA Core: Add loadBIOS
Jeffrey Pfau jeffrey@endrift.com
Sun, 07 Feb 2016 03:38:55 -0800
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
src/gba/core.c
→
src/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;