mirror of https://github.com/mgba-emu/mgba.git
GBA Core: Fix core reset without ROM
This commit is contained in:
parent
9caa6f19ed
commit
525354e500
|
@ -209,11 +209,13 @@ static void _GBACoreReset(struct mCore* core) {
|
|||
|
||||
struct GBACartridgeOverride override;
|
||||
const struct GBACartridge* cart = (const struct GBACartridge*) gba->memory.rom;
|
||||
if (cart) {
|
||||
memcpy(override.id, &cart->id, sizeof(override.id));
|
||||
if (GBAOverrideFind(gbacore->overrides, &override)) {
|
||||
GBAOverrideApply(gba, &override);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void _GBACoreRunFrame(struct mCore* core) {
|
||||
struct GBA* gba = core->board;
|
||||
|
|
Loading…
Reference in New Issue