GBA Core: Add loadBIOS

This commit is contained in:
Jeffrey Pfau 2016-02-07 03:38:55 -08:00
parent 5e75c94967
commit e9fe4a1a9a
1 changed files with 10 additions and 0 deletions

View File

@ -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 @@ struct mCore* GBACoreCreate(void) {
core->getAudioChannel = _GBACoreGetAudioChannel;
core->isROM = GBAIsROM;
core->loadROM = _GBACoreLoadROM;
core->loadBIOS = _GBACoreLoadBIOS;
core->loadSave = _GBACoreLoadSave;
core->loadPatch = _GBACoreLoadPatch;
core->unloadROM = _GBACoreUnloadROM;