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 M4_DETECTION_H
23 #define M4_DETECTION_H
24 
25 #include "engines/advancedDetector.h"
26 
27 namespace M4 {
28 
29 enum M4DebugChannels {
30  kDebugScript = 1 << 0,
31  kDebugConversations = 1 << 1,
32  kDebugGraphics = 1 << 2,
33  kDebugSound = 1 << 3,
34  kDebugCore = 1 << 4,
35  kDebugWSSequ = 1 << 5,
36  kDebugWSMach = 1 << 6
37 };
38 
39 enum M4GameType {
40  GType_Riddle = 1,
41  GType_Burger = 2
42 };
43 
44 enum M4GameStyle {
45  GStyle_Game = 0,
46  GStyle_Demo = 1,
47  GStyle_NonInteractiveDemo = 2
48 };
49 
50 enum Features {
51  kFeaturesNone = 0,
52  kFeaturesCD = 1 << 0,
53  kFeaturesDemo = 1 << 1,
54  kFeaturesNonInteractiveDemo = 1 << 2
55 };
56 
58  AD_GAME_DESCRIPTION_HELPERS(desc);
59 
60  ADGameDescription desc;
61 
62  int gameType;
63  uint32 features;
64 };
65 
66 #define GAMEOPTION_ORIGINAL_SAVELOAD GUIO_GAMEOPTIONS1
67 
68 } // End of namespace M4
69 
70 class M4MetaEngineDetection : public AdvancedMetaEngineDetection<M4::M4GameDescription> {
71  static const DebugChannelDef debugFlagList[];
72 
73 public:
75  ~M4MetaEngineDetection() override {}
76 
77  const char *getName() const override {
78  return "m4";
79  }
80 
81  const char *getEngineName() const override {
82  return "M4";
83  }
84 
85  const char *getOriginalCopyright() const override {
86  return "M4 (C)";
87  }
88 
89  const DebugChannelDef *getDebugChannels() const override {
90  return debugFlagList;
91  }
92 };
93 
94 #endif // M4_DETECTION_H
Definition: detection.h:57
const char * getEngineName() const override
Definition: detection.h:81
Definition: advancedDetector.h:604
Definition: advancedDetector.h:163
const char * getOriginalCopyright() const override
Definition: detection.h:85
Definition: debug-channels.h:36
Definition: database.h:28
const char * getName() const override
Definition: detection.h:77
Definition: detection.h:70
const DebugChannelDef * getDebugChannels() const override
Definition: detection.h:89