From 0d2348f9369e0f2d7e6d3cd25dc7151a33594365 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 9 Oct 2025 10:46:09 +0100 Subject: [PATCH] Add CONFIG_PREFIX, for customising the config name --- code/qcommon/q_shared.h | 2 ++ code/qcommon/qcommon.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index dc429ea8..a33de638 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -39,6 +39,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define CINEMATICS_INTRO "intro.roq" // #define LEGACY_PROTOCOL // You probably don't need this for your standalone game // #define PROTOCOL_HANDLER "foobar" + #define CONFIG_PREFIX "fooconfig" #else #define PRODUCT_NAME "ioq3" #define BASEGAME "baseq3" @@ -52,6 +53,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define CINEMATICS_INTRO "intro.RoQ" #define LEGACY_PROTOCOL #define PROTOCOL_HANDLER "quake3" + #define CONFIG_PREFIX "q3config" #endif // Heartbeat for dpmaster protocol. You shouldn't change this unless you know what you're doing diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index a253fe1a..61bcfdf9 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -595,9 +595,9 @@ issues. #define MAX_FILE_HANDLES 64 #ifdef DEDICATED -# define Q3CONFIG_CFG "q3config_server.cfg" +# define Q3CONFIG_CFG CONFIG_PREFIX "_server.cfg" #else -# define Q3CONFIG_CFG "q3config.cfg" +# define Q3CONFIG_CFG CONFIG_PREFIX ".cfg" #endif qboolean FS_Initialized( void );