ScummVM API documentation
platform.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 COMMON_PLATFORM_H
23 #define COMMON_PLATFORM_H
24 
25 #include "common/scummsys.h"
26 #include "common/list.h"
27 
28 namespace Common {
29 
38 class String;
39 
46 enum Platform : int8 {
47  kPlatformDOS,
48  kPlatformAmiga,
49  kPlatformAmstradCPC,
50  kPlatformAtari8Bit,
51  kPlatformAtariST,
52  kPlatformMacintosh,
53  kPlatformFMTowns,
54  kPlatformWindows,
55  kPlatformNES,
56  kPlatformC64,
57  kPlatformCoCo,
58  kPlatformCoCo3,
59  kPlatformLinux,
60  kPlatformAcorn,
61  kPlatformSegaCD,
62  kPlatform3DO,
63  kPlatformPCEngine,
64  kPlatformApple2,
65  kPlatformApple2GS,
66  kPlatformPC98,
67  kPlatformWii,
68  kPlatformPSX,
69  kPlatformPS2,
70  kPlatformXbox,
71  kPlatformCDi,
72  kPlatformIOS,
73  kPlatformAndroid,
74  kPlatformOS2,
75  kPlatformBeOS,
76  kPlatformPocketPC,
77  kPlatformMegaDrive,
78  kPlatformSaturn,
79  kPlatformPippin,
80  kPlatformMacintoshII,
81  kPlatformShockwave,
82  kPlatformZX,
83  kPlatformTI994,
84 
85  kPlatformUnknown = -1
86 };
87 
89  const char *code;
90  const char *code2;
91  const char *abbrev;
92  const char *description;
93  Platform id;
94 };
95 
96 extern const PlatformDescription g_platforms[];
97 
99 extern Platform parsePlatform(const String &str);
100 extern const char *getPlatformCode(Platform id);
101 extern const char *getPlatformAbbrev(Platform id);
102 extern const char *getPlatformDescription(Platform id);
103 
104 List<String> getPlatformList();
105 
108 } // End of namespace Common
109 
110 #endif
Definition: str.h:59
Definition: list.h:44
Platform parsePlatform(const String &str)
Definition: algorithm.h:29
Definition: platform.h:88
Platform
Definition: platform.h:46