Revert that, doesn't work.

This commit is contained in:
Alcaro 2015-09-17 22:13:22 +02:00
parent 7054c8b214
commit 7cf03b6d47

View File

@ -182,16 +182,10 @@ static bool retro_fread_iterate(RFILE *stream, char *s, size_t len, ssize_t *byt
bool retro_fmemcpy(const char *path, char *s, size_t len, ssize_t *bytes_written)
{
RFILE *stream = retro_fopen(path, RFILE_MODE_READ, -1);
ssize_t bytes_written_this;
if (!stream)
return false;
*bytes_written = 0;
while(retro_fread_iterate(stream, s, len-1, &bytes_written_this))
{
*bytes_written += bytes_written_this;
}
*bytes_written += bytes_written_this;
while(retro_fread_iterate(stream, s, len-1, bytes_written));
retro_fclose(stream);
if (*bytes_written < 0)