From: Thomas Debesse Date: Mon, 11 Feb 2019 08:41:27 +0000 (+0100) Subject: Garux: disable vfsPackFile because of bad miniz X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be1d3eeeae32c1f76573cfd4b36385f0e30bac40;p=xonotic%2Fnetradiant.git Garux: disable vfsPackFile because of bad miniz --- 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 }