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 
44 struct GameSettings {
48  const char *gameid;
49 
60  const char *variant;
61 
66  const char *preferredTag;
67 
75  byte id;
76 
78  byte version;
79 
81  byte heversion;
82 
84  int midi;
85 
90  uint32 features;
91 
98 
102  const char *guioptions;
103 };
104 
105 enum FilenameGenMethod {
106  kGenDiskNum,
107  kGenDiskNumSteam,
108  kGenRoomNum,
109  kGenRoomNumSteam,
110  kGenHEMac,
111  kGenHEMacNoParens,
112  kGenHEPC,
113  kGenHEIOS,
114  kGenUnchanged
115 };
116 
118  const char *pattern;
119  FilenameGenMethod genMethod;
120 };
121 
123  const char *gameid;
124  const char *pattern;
125  FilenameGenMethod genMethod;
126  Common::Language language;
128  const char *variant;
129 };
130 
132  FilenamePattern fp;
133  GameSettings game;
134  Common::Language language;
135  Common::String md5;
136  const char *extra;
137 };
138 
146  GF_DEMO = 1 << 0,
147 
149  GF_NEW_COSTUMES = 1 << 2,
150 
152  GF_USE_KEY = 1 << 4,
153 
155  GF_SMALL_HEADER = 1 << 5,
156 
158  GF_OLD_BUNDLE = 1 << 6,
159 
161  GF_16COLOR = 1 << 7,
162 
164  GF_OLD256 = 1 << 8,
165 
167  GF_AUDIOTRACKS = 1 << 9,
168 
173  GF_FEW_LOCALS = 1 << 11,
174 
176  GF_HE_LOCALIZED = 1 << 13,
177 
182  GF_HE_985 = 1 << 14,
183 
185  GF_16BIT_COLOR = 1 << 15,
186 
191  GF_MAC_CONTAINER = 1 << 16,
192 
198  GF_HE_NO_BIDI = 1 << 17,
199 
205 
210  GF_HE_995 = 1 << 19
211 };
212 
213 enum ScummGameId {
214  GID_CMI,
215  GID_DIG,
216  GID_FT,
217  GID_INDY3,
218  GID_INDY4,
219  GID_LOOM,
220  GID_MANIAC,
221  GID_MONKEY_EGA,
222  GID_MONKEY_VGA,
223  GID_MONKEY,
224  GID_MONKEY2,
225  GID_PASS,
226  GID_SAMNMAX,
227  GID_TENTACLE,
228  GID_ZAK,
229 
230  GID_HEGAME, // Generic name for all HE games with default behavior
231  GID_PUTTDEMO,
232  GID_FBEAR,
233  GID_PUTTMOON,
234  GID_FUNPACK,
235  GID_PUTTZOO,
236  GID_FREDDI,
237  GID_FREDDI3,
238  GID_FREDDI4,
239  GID_BIRTHDAYRED,
240  GID_BIRTHDAYYELLOW,
241  GID_TREASUREHUNT,
242  GID_PUTTRACE,
243  GID_FUNSHOP, // Used for all three funshops
244  GID_FOOTBALL,
245  GID_FOOTBALL2002,
246  GID_SOCCER,
247  GID_SOCCERMLS,
248  GID_SOCCER2004,
249  GID_BASEBALL2001,
250  GID_BASEBALL2003,
251  GID_BASKETBALL,
252  GID_MOONBASE,
253  GID_PJGAMES,
254  GID_HECUP // CUP demos
255 };
256 
258  ScummGameId gameid;
259  const char *variant;
260  const char *patcherName;
261 };
262 } // End of namespace Scumm
263 
264 
265 #endif
Definition: str.h:59
Definition: detection.h:173
Definition: detection.h:122
Definition: detection.h:158
Definition: detection.h:117
byte heversion
Definition: detection.h:81
byte id
Definition: detection.h:75
Definition: detection.h:146
Definition: detection.h:185
Definition: detection.h:161
Common::Platform platform
Definition: detection.h:97
Definition: detection.h:176
byte version
Definition: detection.h:78
Definition: detection.h:164
const char * guioptions
Definition: detection.h:102
Definition: detection.h:44
Definition: detection.h:257
Definition: detection.h:198
const char * variant
Definition: detection.h:60
Definition: detection.h:210
uint32 features
Definition: detection.h:90
Definition: detection.h:152
Definition: detection.h:149
const char * preferredTag
Definition: detection.h:66
Definition: detection.h:155
GameFeatures
Definition: detection.h:144
Definition: detection.h:182
Definition: detection.h:167
int midi
Definition: detection.h:84
Definition: actor.h:30
Definition: detection.h:191
Platform
Definition: platform.h:46
const char * gameid
Definition: detection.h:48
Definition: detection.h:131
Definition: detection.h:204
Language
Definition: language.h:45