all repos — mgba @ 323d425c89c0089a0e263bc08d8faf7647800b98

mGBA Game Boy Advance Emulator

VFS: Fix resizing memory chunks when not needed
Jeffrey Pfau jeffrey@endrift.com
Sun, 23 Oct 2016 10:29:01 -0700
commit

323d425c89c0089a0e263bc08d8faf7647800b98

parent

4c4fbcc2a87e9d38362752652e6542dc5f9dc207

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

jump to
M CHANGESCHANGES

@@ -17,6 +17,7 @@ - Qt: Fix setting overrides

- GBA Cheats: Fix GameShark ROM patches - Qt: Fix cut off tiles and alignment issues in tile viewer - GB MBC: Fix initializing MBC when no ROM is loaded + - VFS: Fix resizing memory chunks when not needed Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/util/vfs/vfs-mem.csrc/util/vfs/vfs-mem.c

@@ -238,7 +238,7 @@

ssize_t _vfmWriteExpanding(struct VFile* vf, const void* buffer, size_t size) { struct VFileMem* vfm = (struct VFileMem*) vf; - if (size + vfm->offset >= vfm->size) { + if (size + vfm->offset > vfm->size) { _vfmExpand(vfm, vfm->offset + size); }