comparison zip.c @ 2681:c4256ce2c45a

Updated Android port using gradle toolchain and with basic Storage Access Framework support for Android 11+ support
author Michael Pavone <pavone@retrodev.com>
date Wed, 26 Mar 2025 01:20:55 -0700
parents 0111c8344477
children
comparison
equal deleted inserted replaced
2680:e3394457427e 2681:c4256ce2c45a
19 ZIP_DEFLATE = 8 19 ZIP_DEFLATE = 8
20 }; 20 };
21 21
22 zip_file *zip_open(const char *filename) 22 zip_file *zip_open(const char *filename)
23 { 23 {
24 #ifdef __ANDROID__
25 FILE *f = fopen_wrapper(filename, "rb");
26 #else
24 FILE *f = fopen(filename, "rb"); 27 FILE *f = fopen(filename, "rb");
28 #endif
25 if (!f) { 29 if (!f) {
26 return NULL; 30 return NULL;
27 } 31 }
28 long fsize = file_size(f); 32 long fsize = file_size(f);
29 if (fsize < MIN_EOCD_SIZE) { 33 if (fsize < MIN_EOCD_SIZE) {