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 /*
23  * Based on the Reverse Engineering work of Christophe Fontanel,
24  * maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/)
25  */
26 
27 #ifndef DM_DETECTION_H
28 #define DM_DETECTION_H
29 
30 #include "engines/advancedDetector.h"
31 
32 namespace DM {
33 
34 enum OriginalSaveFormat {
35  kDMSaveFormatAcceptAny = -1,
36  kDMSaveFormatEndOfList = 0,
37  kDMSaveFormatNone = 0,
38  kDMSaveFormatAtari = 1,
39  kDMSaveFormatAmigaPC98FmTowns = 2,
40  kCSBSaveFormatAtari = 2,
41  kDMSaveFormatAppleIIgs = 3,
42  kDMSaveFormatAmiga36PC = 5,
43  kCSBSaveFormatAmigaPC98FmTowns = 5,
44  kDMSaveFormatTotal
45 };
46 
47 enum OriginalSavePlatform {
48  kDMSavePlatformAcceptAny = -1,
49  kDMSavePlatformEndOfList = 0,
50  kDMSavePlatformNone = 0,
51  kDMSavePlatformAtariSt = 1, // @ C1_PLATFORM_ATARI_ST
52  kDMSavePlatformAppleIIgs = 2, // @ C2_PLATFORM_APPLE_IIGS
53  kDMSavePlatformAmiga = 3, // @ C3_PLATFORM_AMIGA
54  kDMSavePlatformPC98 = 5, // @ C5_PLATFORM_PC98
55  kDMSavePlatformX68000 = 6, // @ C6_PLATFORM_X68000
56  kDMSavePlatformFmTownsEN = 7, // @ C7_PLATFORM_FM_TOWNS_EN
57  kDMSavePlatformFmTownsJP = 8, // @ C8_PLATFORM_FM_TOWNS_JP
58  kDMSavePlatformPC = 9, // @ C9_PLATFORM_PC
59  kDMSavePlatformTotal
60 };
61 
62 enum SaveTarget {
63  kDMSaveTargetAcceptAny = -1,
64  kDMSaveTargetEndOfList = 0,
65  kDMSaveTargetNone = 0,
66  kDMSaveTargetDM21 = 1,
67  kDMSaveTargetTotal
68 };
69 
71  AD_GAME_DESCRIPTION_HELPERS(_desc);
72 
73  ADGameDescription _desc;
74 
75  SaveTarget _saveTargetToWrite;
76  OriginalSaveFormat _origSaveFormatToWrite;
77  OriginalSavePlatform _origPlatformToWrite;
78 
79  SaveTarget _saveTargetToAccept[kDMSaveTargetTotal + 1];
80  OriginalSaveFormat _saveFormatToAccept[kDMSaveFormatTotal + 1];
81  OriginalSavePlatform _origPlatformToAccept[kDMSavePlatformTotal + 1];
82 };
83 
84 } // End of namespace DM
85 
86 #endif // DM_DETECTION_H
Definition: advancedDetector.h:163
Definition: detection.h:70
Definition: champion.h:35