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 
50 struct GameSettings {
54  const char *gameid;
55 
66  const char *variant;
67 
72  const char *preferredTag;
73 
81  byte id;
82 
84  byte version;
85 
87  byte heversion;
88 
90  int midi;
91 
96  uint32 features;
97 
104 
108  const char *guioptions;
109 };
110 
111 enum FilenameGenMethod {
112  kGenDiskNum,
113  kGenDiskNumSteam,
114  kGenRoomNum,
115  kGenRoomNumSteam,
116  kGenHEMac,
117  kGenHEMacNoParens,
118  kGenHEPC,
119  kGenHEIOS,
120  kGenUnchanged
121 };
122 
124  const char *pattern;
125  FilenameGenMethod genMethod;
126 };
127 
129  const char *gameid;
130  const char *pattern;
131  FilenameGenMethod genMethod;
132  Common::Language language;
134  const char *variant;
135 };
136 
138  FilenamePattern fp;
139  GameSettings game;
140  Common::Language language;
141  Common::String md5;
142  const char *extra;
143 };
144 
152  GF_DEMO = 1 << 0,
153 
155  GF_NEW_COSTUMES = 1 << 2,
156 
158  GF_USE_KEY = 1 << 4,
159 
161  GF_SMALL_HEADER = 1 << 5,
162 
164  GF_OLD_BUNDLE = 1 << 6,
165 
167  GF_16COLOR = 1 << 7,
168 
170  GF_OLD256 = 1 << 8,
171 
173  GF_AUDIOTRACKS = 1 << 9,
174 
179  GF_FEW_LOCALS = 1 << 11,
180 
182  GF_HE_LOCALIZED = 1 << 13,
183 
188  GF_HE_985 = 1 << 14,
189 
191  GF_16BIT_COLOR = 1 << 15,
192 
197  GF_MAC_CONTAINER = 1 << 16,
198 
204  GF_HE_NO_BIDI = 1 << 17,
205 
211 
216  GF_HE_995 = 1 << 19,
217 
222 };
223 
224 enum ScummGameId {
225  GID_CMI,
226  GID_DIG,
227  GID_FT,
228  GID_REBEL1,
229  GID_REBEL2,
230  GID_INDY3,
231  GID_INDY4,
232  GID_LOOM,
233  GID_MANIAC,
234  GID_MONKEY_EGA,
235  GID_MONKEY_VGA,
236  GID_MONKEY,
237  GID_MONKEY2,
238  GID_PASS,
239  GID_SAMNMAX,
240  GID_TENTACLE,
241  GID_ZAK,
242 
243  GID_HEGAME, // Generic name for all HE games with default behavior
244  GID_PUTTDEMO,
245  GID_FBEAR,
246  GID_PUTTMOON,
247  GID_FUNPACK,
248  GID_PUTTZOO,
249  GID_FREDDI,
250  GID_FREDDI3,
251  GID_FREDDI4,
252  GID_BIRTHDAYRED,
253  GID_BIRTHDAYYELLOW,
254  GID_TREASUREHUNT,
255  GID_PUTTRACE,
256  GID_FUNSHOP, // Used for all three funshops
257  GID_FOOTBALL,
258  GID_FOOTBALL2002,
259  GID_SOCCER,
260  GID_SOCCERMLS,
261  GID_SOCCER2004,
262  GID_BASEBALL2001,
263  GID_BASEBALL2003,
264  GID_BASKETBALL,
265  GID_MOONBASE,
266  GID_PJGAMES,
267  GID_HECUP // CUP demos
268 };
269 
271  ScummGameId gameid;
272  const char *variant;
273  const char *patcherName;
274 };
275 
276 enum {
277  DEBUG_GENERAL = 1, // General debug
278  DEBUG_SCRIPTS, // Track script execution (start/stop/pause)
279  DEBUG_OPCODES, // Track opcode invocations
280  DEBUG_VARS, // Track variable changes
281  DEBUG_RESOURCE, // Track resource loading / allocation
282  DEBUG_IMUSE, // Track iMUSE events
283  DEBUG_SOUND, // General Sound Debug
284  DEBUG_ACTORS, // General Actor Debug
285  DEBUG_INSANE, // Track INSANE
286  DEBUG_SMUSH, // Track SMUSH
287  DEBUG_MOONBASE_AI, // Moonbase AI
288  DEBUG_NETWORK, // Track Networking
289  DEBUG_IMGUI, // Show ImGui debug window (if available)
290 };
291 
292 } // End of namespace Scumm
293 
294 
295 #endif
Definition: str.h:59
Definition: detection.h:179
Definition: detection.h:128
Definition: detection.h:164
Definition: detection.h:123
byte heversion
Definition: detection.h:87
byte id
Definition: detection.h:81
Definition: detection.h:152
Definition: detection.h:191
Definition: detection.h:167
Common::Platform platform
Definition: detection.h:103
Definition: detection.h:182
byte version
Definition: detection.h:84
Definition: detection.h:170
const char * guioptions
Definition: detection.h:108
Definition: detection.h:50
Definition: detection.h:270
Definition: detection.h:221
Definition: detection.h:204
const char * variant
Definition: detection.h:66
Definition: detection.h:216
uint32 features
Definition: detection.h:96
Definition: detection.h:158
Definition: detection.h:155
const char * preferredTag
Definition: detection.h:72
Definition: detection.h:161
GameFeatures
Definition: detection.h:150
Definition: detection.h:188
Definition: detection.h:173
int midi
Definition: detection.h:90
Definition: actor.h:30
Definition: detection.h:197
Platform
Definition: platform.h:93
const char * gameid
Definition: detection.h:54
Definition: detection.h:137
Definition: detection.h:210
Language
Definition: language.h:45