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