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 
46 struct GameSettings {
50  const char *gameid;
51 
62  const char *variant;
63 
68  const char *preferredTag;
69 
77  byte id;
78 
80  byte version;
81 
83  byte heversion;
84 
86  int midi;
87 
92  uint32 features;
93 
100 
104  const char *guioptions;
105 };
106 
107 enum FilenameGenMethod {
108  kGenDiskNum,
109  kGenDiskNumSteam,
110  kGenRoomNum,
111  kGenRoomNumSteam,
112  kGenHEMac,
113  kGenHEMacNoParens,
114  kGenHEPC,
115  kGenHEIOS,
116  kGenUnchanged
117 };
118 
120  const char *pattern;
121  FilenameGenMethod genMethod;
122 };
123 
125  const char *gameid;
126  const char *pattern;
127  FilenameGenMethod genMethod;
128  Common::Language language;
130  const char *variant;
131 };
132 
134  FilenamePattern fp;
135  GameSettings game;
136  Common::Language language;
137  Common::String md5;
138  const char *extra;
139 };
140 
148  GF_DEMO = 1 << 0,
149 
151  GF_NEW_COSTUMES = 1 << 2,
152 
154  GF_USE_KEY = 1 << 4,
155 
157  GF_SMALL_HEADER = 1 << 5,
158 
160  GF_OLD_BUNDLE = 1 << 6,
161 
163  GF_16COLOR = 1 << 7,
164 
166  GF_OLD256 = 1 << 8,
167 
169  GF_AUDIOTRACKS = 1 << 9,
170 
175  GF_FEW_LOCALS = 1 << 11,
176 
178  GF_HE_LOCALIZED = 1 << 13,
179 
184  GF_HE_985 = 1 << 14,
185 
187  GF_16BIT_COLOR = 1 << 15,
188 
193  GF_MAC_CONTAINER = 1 << 16,
194 
200  GF_HE_NO_BIDI = 1 << 17,
201 
207 
212  GF_HE_995 = 1 << 19,
213 
218 };
219 
220 enum ScummGameId {
221  GID_CMI,
222  GID_DIG,
223  GID_FT,
224  GID_INDY3,
225  GID_INDY4,
226  GID_LOOM,
227  GID_MANIAC,
228  GID_MONKEY_EGA,
229  GID_MONKEY_VGA,
230  GID_MONKEY,
231  GID_MONKEY2,
232  GID_PASS,
233  GID_SAMNMAX,
234  GID_TENTACLE,
235  GID_ZAK,
236 
237  GID_HEGAME, // Generic name for all HE games with default behavior
238  GID_PUTTDEMO,
239  GID_FBEAR,
240  GID_PUTTMOON,
241  GID_FUNPACK,
242  GID_PUTTZOO,
243  GID_FREDDI,
244  GID_FREDDI3,
245  GID_FREDDI4,
246  GID_BIRTHDAYRED,
247  GID_BIRTHDAYYELLOW,
248  GID_TREASUREHUNT,
249  GID_PUTTRACE,
250  GID_FUNSHOP, // Used for all three funshops
251  GID_FOOTBALL,
252  GID_FOOTBALL2002,
253  GID_SOCCER,
254  GID_SOCCERMLS,
255  GID_SOCCER2004,
256  GID_BASEBALL2001,
257  GID_BASEBALL2003,
258  GID_BASKETBALL,
259  GID_MOONBASE,
260  GID_PJGAMES,
261  GID_HECUP // CUP demos
262 };
263 
265  ScummGameId gameid;
266  const char *variant;
267  const char *patcherName;
268 };
269 
270 enum {
271  DEBUG_GENERAL = 1, // General debug
272  DEBUG_SCRIPTS, // Track script execution (start/stop/pause)
273  DEBUG_OPCODES, // Track opcode invocations
274  DEBUG_VARS, // Track variable changes
275  DEBUG_RESOURCE, // Track resource loading / allocation
276  DEBUG_IMUSE, // Track iMUSE events
277  DEBUG_SOUND, // General Sound Debug
278  DEBUG_ACTORS, // General Actor Debug
279  DEBUG_INSANE, // Track INSANE
280  DEBUG_SMUSH, // Track SMUSH
281  DEBUG_MOONBASE_AI, // Moonbase AI
282  DEBUG_NETWORK, // Track Networking
283 };
284 
285 } // End of namespace Scumm
286 
287 
288 #endif
Definition: str.h:59
Definition: detection.h:175
Definition: detection.h:124
Definition: detection.h:160
Definition: detection.h:119
byte heversion
Definition: detection.h:83
byte id
Definition: detection.h:77
Definition: detection.h:148
Definition: detection.h:187
Definition: detection.h:163
Common::Platform platform
Definition: detection.h:99
Definition: detection.h:178
byte version
Definition: detection.h:80
Definition: detection.h:166
const char * guioptions
Definition: detection.h:104
Definition: detection.h:46
Definition: detection.h:264
Definition: detection.h:217
Definition: detection.h:200
const char * variant
Definition: detection.h:62
Definition: detection.h:212
uint32 features
Definition: detection.h:92
Definition: detection.h:154
Definition: detection.h:151
const char * preferredTag
Definition: detection.h:68
Definition: detection.h:157
GameFeatures
Definition: detection.h:146
Definition: detection.h:184
Definition: detection.h:169
int midi
Definition: detection.h:86
Definition: actor.h:30
Definition: detection.h:193
Platform
Definition: platform.h:46
const char * gameid
Definition: detection.h:50
Definition: detection.h:133
Definition: detection.h:206
Language
Definition: language.h:45