From be1d3eeeae32c1f76573cfd4b36385f0e30bac40 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 11 Feb 2019 09:41:27 +0100 Subject: [PATCH] Garux: disable vfsPackFile because of bad miniz --- tools/quake3/common/vfs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/quake3/common/vfs.c b/tools/quake3/common/vfs.c index 7e1fd6d8..0ee642e8 100644 --- a/tools/quake3/common/vfs.c +++ b/tools/quake3/common/vfs.c @@ -52,7 +52,10 @@ #include "vfs.h" #include #include +#define BAD_MINIZ +#ifndef BAD_MINIZ #include "miniz.h" +#endif typedef struct { @@ -493,6 +496,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){ qboolean vfsPackFile( const char *filename, const char *packname ){ +#ifndef BAD_MINIZ int i; char tmp[NAME_MAX], fixed[NAME_MAX]; GSList *lst; @@ -574,4 +578,7 @@ qboolean vfsPackFile( const char *filename, const char *packname ){ } return qfalse; +#else + Error( "Disabled because of miniz issue" ); +#endif } -- 2.39.2