mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-09 19:02:37 +00:00
(WIIU) flush to file after each write, this is a temporary fix as it
seems to hang in FSWriteFile after writing 0x8000 bytes otherwise.
This commit is contained in:
parent
efb8628994
commit
cf1e9f38ce
@ -278,6 +278,7 @@ static ssize_t sd_fat_write_r (struct _reent *r, int fd, const char *ptr, size_t
|
||||
memcpy(tmpBuf, ptr + done, write_size);
|
||||
|
||||
int result = FSWriteFile(file->dev->pClient, file->dev->pCmd, tmpBuf, 0x01, write_size, file->fd, 0, -1);
|
||||
FSFlushFile(file->dev->pClient, file->dev->pCmd, file->fd, -1);
|
||||
if(result < 0)
|
||||
{
|
||||
r->_errno = result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user