(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:
aliaspider 2016-10-28 00:25:47 +01:00
parent efb8628994
commit cf1e9f38ce

View File

@ -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;