Add CONFIG_PREFIX, for customising the config name

This commit is contained in:
Tim Angus 2025-10-09 10:46:09 +01:00
parent f63b5cf8b4
commit 0d2348f936
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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 );