mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix loading multiboot ELF files (fixes #1949)
This commit is contained in:
parent
f7749b31de
commit
b8e5b47c80
1
CHANGES
1
CHANGES
|
@ -63,6 +63,7 @@ Other fixes:
|
|||
- FFmpeg: Fix some small memory leaks
|
||||
- FFmpeg: Fix encoding of time base
|
||||
- GB Video: Fix SGB video logs
|
||||
- GBA: Fix loading multiboot ELF files (fixes mgba.io/i/1949)
|
||||
- mGUI: Don't attempt to preload files larger than can fit in RAM
|
||||
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
|
||||
- Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)
|
||||
|
|
|
@ -487,9 +487,14 @@ static bool _GBACoreLoadROM(struct mCore* core, struct VFile* vf) {
|
|||
#ifdef USE_ELF
|
||||
struct ELF* elf = ELFOpen(vf);
|
||||
if (elf) {
|
||||
GBALoadNull(core->board);
|
||||
if (ELFEntry(elf) == BASE_CART0) {
|
||||
GBALoadNull(core->board);
|
||||
}
|
||||
bool success = mCoreLoadELF(core, elf);
|
||||
ELFClose(elf);
|
||||
if (success) {
|
||||
vf->close(vf);
|
||||
}
|
||||
return success;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue