mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix crash when ROM loading fails
This commit is contained in:
parent
30ed94e803
commit
21d69fa02a
1
CHANGES
1
CHANGES
|
@ -4,6 +4,7 @@ Emulation fixes:
|
|||
- GBA Memory: Fix loading Thumb savestates when in ARM mode
|
||||
Other fixes:
|
||||
- GBA: Fix FireRed revision misdetecting as a ROM hack
|
||||
- GBA: Fix crash when ROM loading fails
|
||||
Misc:
|
||||
- Qt: Add ROM filename and size to bug reporter
|
||||
|
||||
|
|
|
@ -411,6 +411,7 @@ bool GBALoadROM(struct GBA* gba, struct VFile* vf) {
|
|||
gba->memory.romSize = gba->pristineRomSize;
|
||||
}
|
||||
if (!gba->memory.rom) {
|
||||
gba->romVf = NULL;
|
||||
mLOG(GBA, WARN, "Couldn't map ROM");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue