1 /* 2 ** version.h 3 ** 4 **--------------------------------------------------------------------------- 5 ** Copyright 1998-2007 Randy Heit 6 ** All rights reserved. 7 ** 8 ** Redistribution and use in source and binary forms, with or without 9 ** modification, are permitted provided that the following conditions 10 ** are met: 11 ** 12 ** 1. Redistributions of source code must retain the above copyright 13 ** notice, this list of conditions and the following disclaimer. 14 ** 2. Redistributions in binary form must reproduce the above copyright 15 ** notice, this list of conditions and the following disclaimer in the 16 ** documentation and/or other materials provided with the distribution. 17 ** 3. The name of the author may not be used to endorse or promote products 18 ** derived from this software without specific prior written permission. 19 ** 20 ** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21 ** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22 ** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23 ** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 ** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 ** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 **--------------------------------------------------------------------------- 31 ** 32 */ 33 34 #ifndef __VERSION_H__ 35 #define __VERSION_H__ 36 37 const char *GetGitDescription(); 38 const char *GetGitHash(); 39 const char *GetGitTime(); 40 const char *GetVersionString(); 41 42 /** Lots of different version numbers **/ 43 44 #define VERSIONSTR "2.8.1" 45 46 // The version as seen in the Windows resource 47 #define RC_FILEVERSION 2,8,1,0 48 #define RC_PRODUCTVERSION 2,8,1,0 49 #define RC_PRODUCTVERSION2 "2.8.1" 50 51 // Version identifier for network games. 52 // Bump it every time you do a release unless you're certain you 53 // didn't change anything that will affect sync. 54 #define NETGAMEVERSION 231 55 56 // Version stored in the ini's [LastRun] section. 57 // Bump it if you made some configuration change that you want to 58 // be able to migrate in FGameConfigFile::DoGlobalSetup(). 59 #define LASTRUNVERSION "211" 60 61 // Protocol version used in demos. 62 // Bump it if you change existing DEM_ commands or add new ones. 63 // Otherwise, it should be safe to leave it alone. 64 #define DEMOGAMEVERSION 0x21D 65 66 // Minimum demo version we can play. 67 // Bump it whenever you change or remove existing DEM_ commands. 68 #define MINDEMOVERSION 0x21C 69 70 // SAVEVER is the version of the information stored in level snapshots. 71 // Note that SAVEVER is not directly comparable to VERSION. 72 // SAVESIG should match SAVEVER. 73 74 // MINSAVEVER is the minimum level snapshot version that can be loaded. 75 #define MINSAVEVER 3100 76 77 // Use 4500 as the base git save version, since it's higher than the 78 // SVN revision ever got. 79 #define SAVEVER 4531 80 81 #define SAVEVERSTRINGIFY2(x) #x 82 #define SAVEVERSTRINGIFY(x) SAVEVERSTRINGIFY2(x) 83 #define SAVESIG "ZDOOMSAVE" SAVEVERSTRINGIFY(SAVEVER) 84 85 // This is so that derivates can use the same savegame versions without worrying about engine compatibility 86 #define GAMESIG "ZDOOM" 87 #define BASEWAD "zdoom.pk3" 88 89 // More stuff that needs to be different for derivatives. 90 #define GAMENAME "ZDoom" 91 #define GAMENAMELOWERCASE "zdoom" 92 #define FORUM_URL "http://forum.zdoom.org" 93 #define BUGS_FORUM_URL "http://forum.zdoom.org/index.php?c=3" 94 95 #if defined(__APPLE__) || defined(_WIN32) 96 #define GAME_DIR GAMENAME 97 #else 98 #define GAME_DIR ".config/" GAMENAMELOWERCASE 99 #endif 100 101 102 // The maximum length of one save game description for the menus. 103 #define SAVESTRINGSIZE 24 104 105 #endif //__VERSION_H__ 106