Revert "file: Convert file to a memfile as soon as possible"

This reverts commit a1bcf3c09b.
This commit is contained in:
mintsuki 2022-09-24 04:10:45 +02:00
parent 4a4409e1b2
commit 714d8ac2ce

View File

@ -106,10 +106,6 @@ void *freadall(struct file_handle *fd, uint32_t type) {
} else {
void *ret = ext_mem_alloc_type(fd->size, type);
fd->read(fd, ret, 0, fd->size);
fd->close(fd);
fd->is_memfile = true;
fd->readall = true;
fd->fd = ret;
return ret;
}
}