Avoid loading 15 MB files into RAM ever

This commit is contained in:
2024-06-10 10:48:34 -04:00
parent 7abf989de8
commit e40cd00754
4 changed files with 81 additions and 44 deletions

View File

@@ -66,6 +66,7 @@ u32 decompress_lz_file(FS_Path file_name, FS_Archive archive, char ** buf);
u32 compress_lz_file_fast(FS_Path path, FS_Archive archive, char * in_buf, u32 size);
Result buf_to_file(u32 size, FS_Path path, FS_Archive archive, char * buf);
Result zero_handle_memeasy(Handle handle);
void remake_file(FS_Path path, FS_Archive archive, u32 size);
void save_zip_to_sd(char * filename, u32 size, char * buf, RemoteMode mode);
s16 for_each_file_zip(u16 *zip_path, u32 (*zip_iter_callback)(char *filebuf, u64 file_size, const char *name, void *userdata), void *userdata);