all repos — mgba @ 9756f79f044767052280bcc7d7d1225b1f326698

mGBA Game Boy Advance Emulator

VFS: Call msync when syncing mapped data
Jeffrey Pfau jeffrey@endrift.com
Wed, 19 Oct 2016 13:52:51 -0700
commit

9756f79f044767052280bcc7d7d1225b1f326698

parent

644bdec47c78f4b1121a4bb3bd0fce31f5d5dced

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -19,6 +19,7 @@ - SDL: Remove scancode key input

- GBA Video: Clean up unused timers - Test: Add a basic test suite - GBA Video: Allow multiple handles into the same tile cache + - VFS: Call msync when syncing mapped data 0.5.1: (2016-10-05) Bugfixes:
M src/util/vfs/vfs-fd.csrc/util/vfs/vfs-fd.c

@@ -167,6 +167,9 @@ UNUSED(size);

struct VFileFD* vfd = (struct VFileFD*) vf; #ifndef _WIN32 futimes(vfd->fd, NULL); + if (buffer && size) { + return msync(buffer, size, MS_SYNC) == 0; + } return fsync(vfd->fd) == 0; #else HANDLE h = (HANDLE) _get_osfhandle(vfd->fd);