mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix unmapping zipped ROM (fixes #1777)
This commit is contained in:
parent
90e932e12c
commit
1db01d652b
1
CHANGES
1
CHANGES
|
@ -42,6 +42,7 @@ Other fixes:
|
|||
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
|
||||
- Qt: Fix OpenGL 2.1 support (fixes mgba.io/i/1678)
|
||||
- Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)
|
||||
- Qt: Fix unmapping zipped ROM (fixes mgba.io/i/1777)
|
||||
Misc:
|
||||
- 3DS: Clean up legacy initialization (fixes mgba.io/i/1768)
|
||||
- Debugger: Keep track of global cycle count
|
||||
|
|
|
@ -65,7 +65,7 @@ CoreController* CoreManager::loadGame(const QString& path) {
|
|||
if (vfOriginal && (size = vfOriginal->size(vfOriginal)) > 0) {
|
||||
void* mem = vfOriginal->map(vfOriginal, size, MAP_READ);
|
||||
vf = VFileMemChunk(mem, size);
|
||||
vfOriginal->unmap(vfOriginal, mem, (size_t) read);
|
||||
vfOriginal->unmap(vfOriginal, mem, size);
|
||||
vfOriginal->close(vfOriginal);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue