GBA Core: Fix crash after loading debug symbols (fixes #3254)

This commit is contained in:
Vicki Pfau 2024-07-11 14:09:35 -07:00
parent 0484cd5d31
commit 9b598d2fe4
1 changed files with 2 additions and 0 deletions

View File

@ -1265,11 +1265,13 @@ static void _GBACoreLoadSymbols(struct mCore* core, struct VFile* vf) {
}
#endif
if (!vf && gba->mbVf) {
closeAfter = false;
vf = gba->mbVf;
seek = vf->seek(vf, 0, SEEK_CUR);
vf->seek(vf, 0, SEEK_SET);
}
if (!vf && gba->romVf) {
closeAfter = false;
vf = gba->romVf;
seek = vf->seek(vf, 0, SEEK_CUR);
vf->seek(vf, 0, SEEK_SET);