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 TWP_DETECTION_H
23#define TWP_DETECTION_H
24
25#include "engines/advancedDetector.h"
26
27namespace Twp {
28
29enum TwpDebugChannels {
30 kDebugText = 1,
31 kDebugGGPack,
32 kDebugRes,
33 kDebugDialog,
34 kDebugGenScript,
35 kDebugObjScript,
36 kDebugSysScript,
37 kDebugRoomScript,
38 kDebugActScript,
39 kDebugSndScript,
40 kDebugGame,
41 kDebugSave
42};
43
44enum GameXorKey {
45 GAME_XORKEY_56AD,
46 GAME_XORKEY_566D,
47 GAME_XORKEY_5B6D,
48 GAME_XORKEY_5BAD,
49};
50
51enum LanguageSupported {
52 LS_WITH_RUSSIAN,
53 LS_WITHOUT_RUSSIAN
54};
55
56extern const PlainGameDescriptor twpGames[];
58 AD_GAME_DESCRIPTION_HELPERS(desc);
59
61 GameXorKey xorKey;
62 LanguageSupported languageSupported;
63};
64
65extern const TwpGameDescription gameDescriptions[];
66
67} // End of namespace Twp
68
69class TwpMetaEngineDetection : public AdvancedMetaEngineDetection<Twp::TwpGameDescription> {
70 static const DebugChannelDef debugFlagList[];
71
72public:
74 ~TwpMetaEngineDetection() override = default;
75
76 const char *getName() const override {
77 return "twp";
78 }
79
80 const char *getEngineName() const override {
81 return "Thimbleweed Park";
82 }
83
84 const char *getOriginalCopyright() const override {
85 return "Thimbleweed Park (C) Terrible Toybox";
86 }
87
88 const DebugChannelDef *getDebugChannels() const override {
89 return debugFlagList;
90 }
91
93 DetectedGame toDetectedGame(const ADDetectedGame &adGame, ADDetectedGameExtraInfo *extraInfo) const override;
94};
95
96#endif // TWP_DETECTION_H
Definition: advancedDetector.h:611
Definition: detection.h:69
const char * getEngineName() const override
Definition: detection.h:80
const char * getName() const override
Definition: detection.h:76
DetectedGame toDetectedGame(const ADDetectedGame &adGame, ADDetectedGameExtraInfo *extraInfo) const override
const char * getOriginalCopyright() const override
Definition: detection.h:84
const DebugChannelDef * getDebugChannels() const override
Definition: detection.h:88
Definition: advancedDetector.h:301
Definition: advancedDetector.h:309
Definition: advancedDetector.h:164
Definition: debug-channels.h:36
Definition: game.h:146
Definition: game.h:49
Definition: detection.h:57