mirror of https://github.com/mgba-emu/mgba.git
GBA: Improve multiboot detection
This commit is contained in:
parent
fe8c632c78
commit
49b16f3d9b
|
@ -727,6 +727,9 @@ bool GBAIsMB(struct VFile* vf) {
|
|||
if (!GBAIsROM(vf)) {
|
||||
return false;
|
||||
}
|
||||
if (vf->size(vf) > SIZE_WORKING_RAM) {
|
||||
return false;
|
||||
}
|
||||
if (vf->seek(vf, GBA_MB_MAGIC_OFFSET, SEEK_SET) < 0) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue