mirror of https://github.com/mgba-emu/mgba.git
GBA Core: Fix crash after loading debug symbols (fixes #3254)
This commit is contained in:
parent
0484cd5d31
commit
9b598d2fe4
|
@ -1265,11 +1265,13 @@ static void _GBACoreLoadSymbols(struct mCore* core, struct VFile* vf) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (!vf && gba->mbVf) {
|
if (!vf && gba->mbVf) {
|
||||||
|
closeAfter = false;
|
||||||
vf = gba->mbVf;
|
vf = gba->mbVf;
|
||||||
seek = vf->seek(vf, 0, SEEK_CUR);
|
seek = vf->seek(vf, 0, SEEK_CUR);
|
||||||
vf->seek(vf, 0, SEEK_SET);
|
vf->seek(vf, 0, SEEK_SET);
|
||||||
}
|
}
|
||||||
if (!vf && gba->romVf) {
|
if (!vf && gba->romVf) {
|
||||||
|
closeAfter = false;
|
||||||
vf = gba->romVf;
|
vf = gba->romVf;
|
||||||
seek = vf->seek(vf, 0, SEEK_CUR);
|
seek = vf->seek(vf, 0, SEEK_CUR);
|
||||||
vf->seek(vf, 0, SEEK_SET);
|
vf->seek(vf, 0, SEEK_SET);
|
||||||
|
|
Loading…
Reference in New Issue