mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
remove temporary fix
This commit is contained in:
parent
74e344bef6
commit
268e759829
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ size_t f_read(void *dst, size_t size, size_t count, FILE *f) {
|
|||
file_t *file = f_get_file_from_handle(f);
|
||||
if (!file) return fread(dst, size, count, f);
|
||||
if (file->pos >= file->size) return 0;
|
||||
count = MIN(count, ((file->size - file->pos) / size));
|
||||
count = min(count, ((file->size - file->pos) / size));
|
||||
memcpy(dst, file->data + file->pos, count * size);
|
||||
file->pos += count * size;
|
||||
return count;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue