mirror of https://github.com/mgba-emu/mgba.git
Plumb through filename for checking overrides
This commit is contained in:
parent
451c16f4cb
commit
62d941a979
|
@ -56,8 +56,8 @@ static void* _GBAThreadRun(void* context) {
|
|||
strcat(savedata, "sav");
|
||||
}
|
||||
}
|
||||
GBALoadROM(&gba, threadContext->fd, threadContext->fname);
|
||||
gba.savefile = savedata;
|
||||
GBALoadROM(&gba, threadContext->fd, threadContext->fname);
|
||||
}
|
||||
|
||||
#ifdef USE_DEBUGGER
|
||||
|
|
|
@ -454,6 +454,9 @@ void _checkOverrides(struct GBA* gba, uint32_t id) {
|
|||
int i;
|
||||
for (i = 0; _savedataOverrides[i].id; ++i) {
|
||||
if (_savedataOverrides[i].id == id) {
|
||||
if (_savedataOverrides[i].type != SAVEDATA_NONE) {
|
||||
GBASavedataInit(&gba->memory.savedata, gba->savefile);
|
||||
}
|
||||
gba->memory.savedata.type = _savedataOverrides[i].type;
|
||||
switch (_savedataOverrides[i].type) {
|
||||
case SAVEDATA_FLASH512:
|
||||
|
|
Loading…
Reference in New Issue