ScummVM API documentation
detection.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCUMM_DETECTION_H
23 #define SCUMM_DETECTION_H
24 
25 #include "common/language.h"
26 #include "common/platform.h"
27 
28 namespace Scumm {
29 
30 
31 // GUI-options, primarily used by detection_tables.h
32 #define GAMEOPTION_TRIM_FMTOWNS_TO_200_PIXELS GUIO_GAMEOPTIONS1
33 #define GAMEOPTION_ENHANCEMENTS GUIO_GAMEOPTIONS2
34 #define GAMEOPTION_AUDIO_OVERRIDE GUIO_GAMEOPTIONS3
35 #define GAMEOPTION_ORIGINALGUI GUIO_GAMEOPTIONS4
36 #define GAMEOPTION_LOWLATENCYAUDIO GUIO_GAMEOPTIONS5
37 #define GAMEOPTION_NETWORK GUIO_GAMEOPTIONS6
38 #define GAMEOPTION_COPY_PROTECTION GUIO_GAMEOPTIONS7
39 #define GAMEOPTION_USE_REMASTERED_AUDIO GUIO_GAMEOPTIONS8
40 #define GAMEOPTION_TTS GUIO_GAMEOPTIONS9
41 #define GAMEOPTION_REBEL2_HIRES GUIO_GAMEOPTIONS10
42 #define GAMEOPTION_REBEL2_UNLOCK_ALL GUIO_GAMEOPTIONS11
43 #define GAMEOPTION_REBEL1_UNLOCK_ALL GUIO_GAMEOPTIONS12
44 #define GAMEOPTION_REBEL2_NO_DAMAGE GUIO_GAMEOPTIONS13
45 #define GAMEOPTION_REBEL2_YODA_MODE GUIO_GAMEOPTIONS14
46 #define GAMEOPTION_REBEL1_NO_DAMAGE GUIO_GAMEOPTIONS15
47 
52 struct GameSettings {
56  const char *gameid;
57 
68  const char *variant;
69 
74  const char *preferredTag;
75 
83  byte id;
84 
86  byte version;
87 
89  byte heversion;
90 
92  int midi;
93 
98  uint32 features;
99 
106 
110  const char *guioptions;
111 };
112 
113 enum FilenameGenMethod {
114  kGenDiskNum,
115  kGenDiskNumSteam,
116  kGenRoomNum,
117  kGenRoomNumSteam,
118  kGenHEMac,
119  kGenHEMacNoParens,
120  kGenHEPC,
121  kGenHEIOS,
122  kGenUnchanged
123 };
124 
126  const char *pattern;
127  FilenameGenMethod genMethod;
128 };
129 
131  const char *gameid;
132  const char *pattern;
133  FilenameGenMethod genMethod;
134  Common::Language language;
136  const char *variant;
137 };
138 
140  FilenamePattern fp;
141  GameSettings game;
142  Common::Language language;
143  Common::String md5;
144  const char *extra;
145 };
146 
154  GF_DEMO = 1 << 0,
155 
157  GF_TESTING = 1 << 1,
158 
160  GF_NEW_COSTUMES = 1 << 2,
161 
163  GF_USE_KEY = 1 << 4,
164 
166  GF_SMALL_HEADER = 1 << 5,
167 
169  GF_OLD_BUNDLE = 1 << 6,
170 
172  GF_16COLOR = 1 << 7,
173 
175  GF_OLD256 = 1 << 8,
176 
178  GF_AUDIOTRACKS = 1 << 9,
179 
184  GF_FEW_LOCALS = 1 << 11,
185 
187  GF_HE_LOCALIZED = 1 << 13,
188 
193  GF_HE_985 = 1 << 14,
194 
196  GF_16BIT_COLOR = 1 << 15,
197 
202  GF_MAC_CONTAINER = 1 << 16,
203 
209  GF_HE_NO_BIDI = 1 << 17,
210 
216 
221  GF_HE_995 = 1 << 19,
222 
227 };
228 
229 enum ScummGameId {
230  GID_CMI,
231  GID_DIG,
232  GID_FT,
233  GID_REBEL1,
234  GID_REBEL2,
235  GID_INDY3,
236  GID_INDY4,
237  GID_LOOM,
238  GID_MANIAC,
239  GID_MONKEY_EGA,
240  GID_MONKEY_VGA,
241  GID_MONKEY,
242  GID_MONKEY2,
243  GID_PASS,
244  GID_SAMNMAX,
245  GID_TENTACLE,
246  GID_ZAK,
247 
248  GID_HEGAME, // Generic name for all HE games with default behavior
249  GID_PUTTDEMO,
250  GID_FBEAR,
251  GID_PUTTMOON,
252  GID_FUNPACK,
253  GID_PUTTZOO,
254  GID_FREDDI,
255  GID_FREDDI3,
256  GID_FREDDI4,
257  GID_BIRTHDAYRED,
258  GID_BIRTHDAYYELLOW,
259  GID_TREASUREHUNT,
260  GID_PUTTRACE,
261  GID_FUNSHOP, // Used for all three funshops
262  GID_FOOTBALL,
263  GID_FOOTBALL2002,
264  GID_SOCCER,
265  GID_SOCCERMLS,
266  GID_SOCCER2004,
267  GID_BASEBALL2001,
268  GID_BASEBALL2003,
269  GID_BASKETBALL,
270  GID_MOONBASE,
271  GID_PJGAMES,
272  GID_HECUP // CUP demos
273 };
274 
276  ScummGameId gameid;
277  const char *variant;
278  const char *patcherName;
279 };
280 
281 enum {
282  DEBUG_GENERAL = 1, // General debug
283  DEBUG_SCRIPTS, // Track script execution (start/stop/pause)
284  DEBUG_OPCODES, // Track opcode invocations
285  DEBUG_VARS, // Track variable changes
286  DEBUG_RESOURCE, // Track resource loading / allocation
287  DEBUG_IMUSE, // Track iMUSE events
288  DEBUG_SOUND, // General Sound Debug
289  DEBUG_ACTORS, // General Actor Debug
290  DEBUG_INSANE, // Track INSANE
291  DEBUG_SMUSH, // Track SMUSH
292  DEBUG_MOONBASE_AI, // Moonbase AI
293  DEBUG_NETWORK, // Track Networking
294 };
295 
296 } // End of namespace Scumm
297 
298 
299 #endif
Definition: str.h:59
Definition: detection.h:157
Definition: detection.h:184
Definition: detection.h:130
Definition: detection.h:169
Definition: detection.h:125
byte heversion
Definition: detection.h:89
byte id
Definition: detection.h:83
Definition: detection.h:154
Definition: detection.h:196
Definition: detection.h:172
Common::Platform platform
Definition: detection.h:105
Definition: detection.h:187
byte version
Definition: detection.h:86
Definition: detection.h:175
const char * guioptions
Definition: detection.h:110
Definition: detection.h:52
Definition: detection.h:275
Definition: detection.h:226
Definition: detection.h:209
const char * variant
Definition: detection.h:68
Definition: detection.h:221
uint32 features
Definition: detection.h:98
Definition: detection.h:163
Definition: detection.h:160
const char * preferredTag
Definition: detection.h:74
Definition: detection.h:166
GameFeatures
Definition: detection.h:152
Definition: detection.h:193
Definition: detection.h:178
int midi
Definition: detection.h:92
Definition: actor.h:30
Definition: detection.h:202
Platform
Definition: platform.h:93
const char * gameid
Definition: detection.h:56
Definition: detection.h:139
Definition: detection.h:215
Language
Definition: language.h:45