From cb8e0a50bcc1115bdc9909ff97f32b02af464bef Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 29 Oct 2019 11:30:57 +0700 Subject: [PATCH] lowmemory: reduce MAX_QPATH --- common/xash3d_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/xash3d_types.h b/common/xash3d_types.h index 1c82b353..ac86cdea 100644 --- a/common/xash3d_types.h +++ b/common/xash3d_types.h @@ -142,7 +142,11 @@ typedef void (*setpair_t)( const char *key, const void *value, void *buffer, voi // config strings are a general means of communication from // the server to all connected clients. // each config string can be at most CS_SIZE characters. + #define MAX_QPATH 64 // max length of a game pathname +#if XASH_LOW_MEMORY == 2 +#define MAX_QPATH 32 +#endif #define MAX_OSPATH 260 // max length of a filesystem pathname #define CS_SIZE 64 // size of one config string #define CS_TIME 16 // size of time string