MaNGOS 0.12 release.
[getmangos.git] / src / shared / SystemConfig.h.in
blob9ffb9eaab09b5e493334d35f66b1955b2f8f7925
1 /*
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
22 #ifndef _PACKAGENAME
23 #define _PACKAGENAME "MaNGOS"
24 #endif
26 #include "Platform/Define.h"
28 #ifndef _VERSION
29 #if PLATFORM == PLATFORM_WINDOWS
30 # define _VERSION(REVD,REVT,REVN,REVH) "0.12.1" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
31 #else
32 # define _VERSION(REVD,REVT,REVN,REVH) "@VERSION@" " (" REVD " " REVT " Revision " REVN " - " REVH ")"
33 #endif
34 #endif
36 // Format is YYYYMMDDRR where RR is the change in the conf file
37 // for that day.
38 #ifndef _MANGOSDCONFVERSION
39 # define _MANGOSDCONFVERSION 2008022901
40 #endif
41 #ifndef _REALMDCONFVERSION
42 # define _REALMDCONFVERSION 2007062001
43 #endif
45 #if MANGOS_ENDIAN == MANGOS_BIGENDIAN
46 # define _ENDIAN_STRING "big-endian"
47 #else
48 # define _ENDIAN_STRING "little-endian"
49 #endif
51 // The path to config files
52 #ifndef SYSCONFDIR
53 # define SYSCONFDIR ""
54 #endif
56 #if PLATFORM == PLATFORM_WINDOWS
57 # ifdef _WIN64
58 # define _ENDIAN_PLATFORM "Win64 (" _ENDIAN_STRING ")"
59 # else
60 # define _ENDIAN_PLATFORM "Win32 (" _ENDIAN_STRING ")"
61 # endif
62 # define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
63 # define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
64 #else
65 # define _ENDIAN_PLATFORM "Unix (" _ENDIAN_STRING ")"
66 # define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
67 # define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
68 #endif
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
76 #endif