mirror of https://github.com/mgba-emu/mgba.git
Core: Add patch loading stub
This commit is contained in:
parent
dd4b974a0c
commit
28268a601b
|
@ -48,6 +48,8 @@ struct mCore {
|
|||
bool (*loadBIOS)(struct mCore*, struct VFile* vf, int biosID);
|
||||
bool (*selectBIOS)(struct mCore*, int biosID);
|
||||
|
||||
bool (*loadPatch)(struct mCore*, struct VFile* vf);
|
||||
|
||||
void (*reset)(struct mCore*);
|
||||
void (*runFrame)(struct mCore*);
|
||||
void (*runLoop)(struct mCore*);
|
||||
|
@ -66,5 +68,6 @@ struct mCore {
|
|||
|
||||
bool mCoreLoadFile(struct mCore* core, const char* path);
|
||||
bool mCoreAutoloadSave(struct mCore* core);
|
||||
bool mCoreAutoloadPatch(struct mCore* core);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -80,6 +80,14 @@ static bool _GBCoreLoadSave(struct mCore* core, struct VFile* vf) {
|
|||
return GBLoadSave(core->board, vf);
|
||||
}
|
||||
|
||||
static bool _GBCoreLoadPatch(struct mCore* core, struct VFile* vf) {
|
||||
// TODO
|
||||
UNUSED(core);
|
||||
UNUSED(vf);
|
||||
mLOG(GB, STUB, "Patches are not yet supported");
|
||||
return false;
|
||||
}
|
||||
|
||||
static void _GBCoreUnloadROM(struct mCore* core) {
|
||||
return GBUnloadROM(core->board);
|
||||
}
|
||||
|
@ -153,6 +161,7 @@ struct mCore* GBCoreCreate(void) {
|
|||
core->isROM = GBIsROM;
|
||||
core->loadROM = _GBCoreLoadROM;
|
||||
core->loadSave = _GBCoreLoadSave;
|
||||
core->loadPatch = _GBCoreLoadPatch;
|
||||
core->unloadROM = _GBCoreUnloadROM;
|
||||
core->reset = _GBCoreReset;
|
||||
core->runFrame = _GBCoreRunFrame;
|
||||
|
|
Loading…
Reference in New Issue