summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0877c7d)
compile out zlib parts with NO_ZLIB ifdef for PSP and PS3
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o zlib/uncompr.o
# unzip
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o zlib/uncompr.o
# unzip
OBJS += unzip/unzip.o unzip/unzip_stream.o
OBJS += unzip/unzip.o unzip/unzip_stream.o
include platform/common/common.mak
include platform/common/common.mak
CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__
endif
CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__
endif
+ifeq ($(DONT_COMPILE_IN_ZLIB),1)
+CFLAGS += -DNO_ZLIB
+endif
+
ifeq ($(NO_MMAP),1)
CFLAGS += -DNO_MMAP
endif
ifeq ($(NO_MMAP),1)
CFLAGS += -DNO_MMAP
endif
return NULL;\r
\r
ext = get_ext(path);\r
return NULL;\r
\r
ext = get_ext(path);\r
if (strcasecmp(ext, "zip") == 0)\r
{\r
struct zipent *zipentry;\r
if (strcasecmp(ext, "zip") == 0)\r
{\r
struct zipent *zipentry;\r
- else if (strcasecmp(ext, "cso") == 0)\r
+ else\r
+#endif\r
+ if (strcasecmp(ext, "cso") == 0)\r
{\r
cso_struct *cso = NULL, *tmp = NULL;\r
int size;\r
{\r
cso_struct *cso = NULL, *tmp = NULL;\r
int size;\r
{\r
ret = fread(ptr, 1, bytes, stream->file);\r
}\r
{\r
ret = fread(ptr, 1, bytes, stream->file);\r
}\r
else if (stream->type == PMT_ZIP)\r
{\r
gzFile gf = stream->param;\r
else if (stream->type == PMT_ZIP)\r
{\r
gzFile gf = stream->param;\r
/* we must reset stream pointer or else next seek/read fails */\r
gzrewind(gf);\r
}\r
/* we must reset stream pointer or else next seek/read fails */\r
gzrewind(gf);\r
}\r
else if (stream->type == PMT_CSO)\r
{\r
cso_struct *cso = stream->param;\r
else if (stream->type == PMT_CSO)\r
{\r
cso_struct *cso = stream->param;\r
fseek(stream->file, offset, whence);\r
return ftell(stream->file);\r
}\r
fseek(stream->file, offset, whence);\r
return ftell(stream->file);\r
}\r
else if (stream->type == PMT_ZIP)\r
{\r
if (PicoMessage != NULL && offset > 6*1024*1024) {\r
else if (stream->type == PMT_ZIP)\r
{\r
if (PicoMessage != NULL && offset > 6*1024*1024) {\r
}\r
return gzseek((gzFile) stream->param, offset, whence);\r
}\r
}\r
return gzseek((gzFile) stream->param, offset, whence);\r
}\r
else if (stream->type == PMT_CSO)\r
{\r
cso_struct *cso = stream->param;\r
else if (stream->type == PMT_CSO)\r
{\r
cso_struct *cso = stream->param;\r
{\r
fclose(fp->file);\r
}\r
{\r
fclose(fp->file);\r
}\r
else if (fp->type == PMT_ZIP)\r
{\r
ZIP *zipfile = fp->file;\r
else if (fp->type == PMT_ZIP)\r
{\r
ZIP *zipfile = fp->file;\r
zipfile->fp = NULL; // gzclose() closed it\r
closezip(zipfile);\r
}\r
zipfile->fp = NULL; // gzclose() closed it\r
closezip(zipfile);\r
}\r
else if (fp->type == PMT_CSO)\r
{\r
free(fp->param);\r
else if (fp->type == PMT_CSO)\r
{\r
free(fp->param);\r