2 * Copyright (C) 2005,2006 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef MANGOS_SYSTEMCONFIG_H
20 #define MANGOS_SYSTEMCONFIG_H
23 #define _PACKAGENAME "MaNGOS"
26 #include "Platform/Define.h"
29 #if PLATFORM == PLATFORM_WINDOWS
30 # define _VERSION(REVD,REVT,REVN,REVH) "0.13.0-DEV" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
32 # define _VERSION(REVD,REVT,REVN,REVH) "@VERSION@" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
36 // Format is YYYYMMDDRR where RR is the change in the conf file
38 #ifndef _MANGOSDCONFVERSION
39 # define _MANGOSDCONFVERSION 2008022901
41 #ifndef _REALMDCONFVERSION
42 # define _REALMDCONFVERSION 2007062001
45 #if MANGOS_ENDIAN == MANGOS_BIGENDIAN
46 # define _ENDIAN_STRING "big-endian"
48 # define _ENDIAN_STRING "little-endian"
51 // The path to config files
53 # define SYSCONFDIR ""
56 #if PLATFORM == PLATFORM_WINDOWS
58 # define _ENDIAN_PLATFORM "Win64 (" _ENDIAN_STRING ")"
60 # define _ENDIAN_PLATFORM "Win32 (" _ENDIAN_STRING ")"
62 # define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
63 # define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
65 # define _ENDIAN_PLATFORM "Unix (" _ENDIAN_STRING ")"
66 # define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
67 # define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
70 #define _FULLVERSION(REVD,REVT,REVN,REVH) _PACKAGENAME "/" _VERSION(REVD,REVT,REVN,REVH) " for " _ENDIAN_PLATFORM
72 #define DEFAULT_PLAYER_LIMIT 100
73 #define DEFAULT_WORLDSERVER_PORT 8085 //8129
74 #define DEFAULT_REALMSERVER_PORT 3724
75 #define DEFAULT_SOCKET_SELECT_TIME 10000