Qt: Fix unmapping zipped ROM (fixes #1777)

This commit is contained in:
Vicki Pfau 2020-06-06 17:24:20 -07:00
parent 90e932e12c
commit 1db01d652b
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ Other fixes:
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642) - 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 OpenGL 2.1 support (fixes mgba.io/i/1678)
- Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769) - Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)
- Qt: Fix unmapping zipped ROM (fixes mgba.io/i/1777)
Misc: Misc:
- 3DS: Clean up legacy initialization (fixes mgba.io/i/1768) - 3DS: Clean up legacy initialization (fixes mgba.io/i/1768)
- Debugger: Keep track of global cycle count - Debugger: Keep track of global cycle count

View File

@ -65,7 +65,7 @@ CoreController* CoreManager::loadGame(const QString& path) {
if (vfOriginal && (size = vfOriginal->size(vfOriginal)) > 0) { if (vfOriginal && (size = vfOriginal->size(vfOriginal)) > 0) {
void* mem = vfOriginal->map(vfOriginal, size, MAP_READ); void* mem = vfOriginal->map(vfOriginal, size, MAP_READ);
vf = VFileMemChunk(mem, size); vf = VFileMemChunk(mem, size);
vfOriginal->unmap(vfOriginal, mem, (size_t) read); vfOriginal->unmap(vfOriginal, mem, size);
vfOriginal->close(vfOriginal); vfOriginal->close(vfOriginal);
} }
} }