:: commit 714d8ac2ce8e192c18117347ae94bfd7e50bcca5

mintsuki <mintsuki@protonmail.com> — 2022-09-24 02:10

parents: 4a4409e1b2

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

This reverts commit a1bcf3c09bc691925e0607b4f282c59cf8575d6a.
diff --git a/common/fs/file.s2.c b/common/fs/file.s2.c
index 436e33fe..f58dfaf4 100644
--- a/common/fs/file.s2.c
+++ b/common/fs/file.s2.c
@@ -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;
     }
 }
tab: 248 wrap: offon