mirror of https://github.com/mgba-emu/mgba.git
VFS: Fix return values of VFileFILE.read and .write
This commit is contained in:
parent
f4a1f1d7b2
commit
f960a3bb2a
1
CHANGES
1
CHANGES
|
@ -10,6 +10,7 @@ Bugfixes:
|
|||
- Libretro: Fix a memory leak with the render buffer
|
||||
- GBA Audio: Fix 8-bit writes to audio channel 3 and 4 registers
|
||||
- GBA Audio: Fix audio channels being silenced at the wrong time
|
||||
- VFS: Fix return values of VFileFILE.read and .write
|
||||
Misc:
|
||||
- Qt: Remove useless help icons in dialogs
|
||||
- GBA: Attempting to save a screenshot-style savestate should be allowed without libpng
|
||||
|
|
|
@ -79,12 +79,12 @@ off_t _vffSeek(struct VFile* vf, off_t offset, int whence) {
|
|||
|
||||
ssize_t _vffRead(struct VFile* vf, void* buffer, size_t size) {
|
||||
struct VFileFILE* vff = (struct VFileFILE*) vf;
|
||||
return fread(buffer, size, 1, vff->file);
|
||||
return fread(buffer, 1, size, vff->file);
|
||||
}
|
||||
|
||||
ssize_t _vffWrite(struct VFile* vf, const void* buffer, size_t size) {
|
||||
struct VFileFILE* vff = (struct VFileFILE*) vf;
|
||||
return fwrite(buffer, size, 1, vff->file);
|
||||
return fwrite(buffer, 1, size, vff->file);
|
||||
}
|
||||
|
||||
static void* _vffMap(struct VFile* vf, size_t size, int flags) {
|
||||
|
|
Loading…
Reference in New Issue