all repos — mgba @ 1db01d652bedd6aaf80bcb575af05bb66b836230

mGBA Game Boy Advance Emulator

Qt: Fix unmapping zipped ROM (fixes #1777)
Vicki Pfau vi@endrift.com
Sat, 06 Jun 2020 17:24:20 -0700
commit

1db01d652bedd6aaf80bcb575af05bb66b836230

parent

90e932e12c0e093d9ff35989bf12778d7ff079eb

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -42,6 +42,7 @@ - Debugger: Don't skip undefined instructions when debugger attached

- 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
M src/platform/qt/CoreManager.cppsrc/platform/qt/CoreManager.cpp

@@ -65,7 +65,7 @@ ssize_t size;

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); } }