diff --git a/src/platform/3ds/3ds-vfs.c b/src/platform/3ds/3ds-vfs.c index 1a0ab3c30..b7a8075d8 100644 --- a/src/platform/3ds/3ds-vfs.c +++ b/src/platform/3ds/3ds-vfs.c @@ -137,7 +137,9 @@ static void* _vf3dMap(struct VFile* vf, size_t size, int flags) { } static void _vf3dUnmap(struct VFile* vf, void* memory, size_t size) { - UNUSED(vf); + struct VFile3DS* vf3d = (struct VFile3DS*) vf; + u32 sizeWritten; + FSFILE_Write(vf3d->handle, &sizeWritten, 0, memory, size, FS_WRITE_FLUSH); mappedMemoryFree(memory, size); } diff --git a/src/platform/psp2/sce-vfs.c b/src/platform/psp2/sce-vfs.c index b712df7fd..88cb12119 100644 --- a/src/platform/psp2/sce-vfs.c +++ b/src/platform/psp2/sce-vfs.c @@ -104,7 +104,8 @@ static void* _vfsceMap(struct VFile* vf, size_t size, int flags) { } static void _vfsceUnmap(struct VFile* vf, void* memory, size_t size) { - UNUSED(vf); + struct VFileSce* vfsce = (struct VFileSce*) vf; + sceIoWrite(vfsce->fd, memory, size); mappedMemoryFree(memory, size); }