| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/main/program.h $ |
| 21 | * $Revision: 40 $ |
| 22 | * $Date: 8/30/01 4:31p $ |
| 23 | * $Author: Matt $ |
| 24 | * |
| 25 | * program state header |
| 26 | * |
| 27 | * $Log: /DescentIII/main/program.h $ |
| 28 | * |
| 29 | * 40 8/30/01 4:31p Matt |
| 30 | * Updated version number to 1.5 |
| 31 | * |
| 32 | * 39 4/19/00 5:37p Matt |
| 33 | * Changed version number to 1.4 (accidentally left it as 1.4.1 last time) |
| 34 | * |
| 35 | * 38 3/21/00 10:20a Matt |
| 36 | * Changed to version 1.4 |
| 37 | * |
| 38 | * 37 10/18/99 4:03p Chris |
| 39 | * Merc is 1.3 |
| 40 | * |
| 41 | * 35 10/18/99 1:27p Kevin |
| 42 | * Added cf_IsFileInHog |
| 43 | * |
| 44 | * 34 9/29/99 8:04a Kevin |
| 45 | * |
| 46 | * 33 7/06/99 5:55p Kevin |
| 47 | * 1.1 patch for the US version |
| 48 | * |
| 49 | * 32 6/16/99 12:03p Kevin |
| 50 | * version |
| 51 | * |
| 52 | * 31 6/10/99 4:12p Kevin |
| 53 | * Fixed SetLevel in dedicated server for HEAT.NET, and added |
| 54 | * level_names.str for level name localization. |
| 55 | * |
| 56 | * 30 5/03/99 5:24p Kevin |
| 57 | * Version number |
| 58 | * |
| 59 | * 29 5/01/99 10:41a Kevin |
| 60 | * beta 6 |
| 61 | * |
| 62 | * 28 4/28/99 4:14p Kevin |
| 63 | * |
| 64 | * 27 4/25/99 12:19p Kevin |
| 65 | * version change |
| 66 | * |
| 67 | * 26 4/21/99 9:47a Kevin |
| 68 | * beta 3 |
| 69 | * |
| 70 | * 25 4/18/99 1:18p Kevin |
| 71 | * Demo2 build changes |
| 72 | * |
| 73 | * 24 4/15/99 9:25a Kevin |
| 74 | * CD check fixes and updates |
| 75 | * |
| 76 | * 23 4/07/99 9:19a Kevin |
| 77 | * Changed version number for full version beta 1(?) |
| 78 | * |
| 79 | * 22 3/22/99 10:14a Kevin |
| 80 | * Added a build number to the release builds of main. Also put in code to |
| 81 | * increment the build number each time a release build is done. |
| 82 | * |
| 83 | * 21 3/19/99 4:36p Kevin |
| 84 | * |
| 85 | * 20 3/16/99 11:26a Kevin |
| 86 | * Changed version number for OEM build |
| 87 | * |
| 88 | * 19 3/03/99 7:21p Jeff |
| 89 | * updated program version for oem final |
| 90 | * |
| 91 | * 18 3/03/99 1:03a Kevin |
| 92 | * Version Change |
| 93 | * |
| 94 | * 17 3/02/99 8:50p Jeff |
| 95 | * |
| 96 | * 16 3/02/99 11:52a Kevin |
| 97 | * Fixes for OEM Beta 4.1 |
| 98 | * |
| 99 | * 15 3/01/99 9:03p Kevin |
| 100 | * OEM Beta 4 |
| 101 | * |
| 102 | * 14 2/26/99 6:48p Kevin |
| 103 | * Fixes to load/save game, and change minor version for OEM beta 3 |
| 104 | * |
| 105 | * 13 2/24/99 3:35p Kevin |
| 106 | * Changed OEM minor version to 2 |
| 107 | * |
| 108 | * 12 2/20/99 12:33p Kevin |
| 109 | * Added some OEM stuff |
| 110 | * |
| 111 | * 11 10/23/98 1:09p Samir |
| 112 | * Demo Release 1.0 |
| 113 | * |
| 114 | * 10 10/22/98 11:07a Samir |
| 115 | * Demo Beta 7! |
| 116 | * |
| 117 | * 9 10/20/98 3:52p Samir |
| 118 | * Demo Beta 6 |
| 119 | * |
| 120 | * 8 10/19/98 7:48p Samir |
| 121 | * beta 5 demo |
| 122 | * |
| 123 | * 7 10/16/98 1:11p Samir |
| 124 | * Beta 4 Demo |
| 125 | * |
| 126 | * 6 10/13/98 5:51p Samir |
| 127 | * beta 3 |
| 128 | * |
| 129 | * 5 10/12/98 1:45p Samir |
| 130 | * added version key to database. |
| 131 | * |
| 132 | * 4 10/08/98 10:48p Samir |
| 133 | * version 2.0 |
| 134 | * |
| 135 | * 3 10/08/98 7:30p Samir |
| 136 | * changed version numbers. |
| 137 | * |
| 138 | * 2 10/02/98 12:30p Samir |
| 139 | * added version information for beta/demo. |
| 140 | * |
| 141 | * 4 2/11/97 3:17p Samir |
| 142 | * Tookout editor defines. |
| 143 | * |
| 144 | * 3 2/06/97 4:04p Samir |
| 145 | * Added editor and beta defines |
| 146 | * |
| 147 | * 2 2/04/97 5:07p Samir |
| 148 | * Added windowed state to determine if we run in a window |
| 149 | * |
| 150 | * 1 2/03/97 5:07p Samir |
| 151 | * Program version info |
| 152 | * |
| 153 | * $NoKeywords: $ |
| 154 | */ |
| 155 | |
| 156 | #ifndef PROGRAM_H |
| 157 | #define PROGRAM_H |
| 158 | |
| 159 | #include "d3_version.h" |
| 160 | #include "pstypes.h" |
| 161 | |
| 162 | #define DEVELOPMENT_VERSION 0x1 // without editor: with debug, no beta |
| 163 | #define RELEASE_VERSION 0x2 // final release candidate: no debug, beta, editor |
| 164 | |
| 165 | #define BETA_VERSION 0x1000 // beta modifier. |
| 166 | #define DEMO_VERSION 0x2000 // same as release, but its the demo. |
| 167 | |
| 168 | struct program_version { |
| 169 | int version_type; |
| 170 | uint8_t major, minor, build; |
| 171 | bool debug : 1; // are we in debug mode |
| 172 | bool beta : 1; // are we in beta testing mode |
| 173 | bool release : 1; // are we a final release candidate |
| 174 | bool editor : 1; // editor code? |
| 175 | bool windowed : 1; // runs in a window? |
| 176 | bool demo : 1; // demo? |
| 177 | }; |
| 178 | |
| 179 | // Program state available to everyone |
| 180 | extern program_version Program_version; |
| 181 | |
| 182 | // Useful macros |
| 183 | #define PROGRAM(_c) Program_version._c |
| 184 | |
| 185 | // functions |
| 186 | void ProgramVersion(int version_type, uint8_t major, uint8_t minor, uint8_t build); |
| 187 | |
| 188 | #endif |