ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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  kPlatformPS3,
71  kPlatformXbox,
72  kPlatformCDi,
73  kPlatformIOS,
74  kPlatformAndroid,
75  kPlatformOS2,
76  kPlatformBeOS,
77  kPlatformPocketPC,
78  kPlatformMegaDrive,
79  kPlatformSaturn,
80  kPlatformPippin,
81  kPlatformMacintoshII,
82  kPlatformShockwave,
83  kPlatformZX,
84  kPlatformTI994,
85  kPlatformNintendoSwitch,
86 
87  kPlatformUnknown = -1
88 };
89 
91  const char *code;
92  const char *code2;
93  const char *abbrev;
94  const char *description;
95  Platform id;
96 };
97 
98 extern const PlatformDescription g_platforms[];
99 
101 extern Platform parsePlatform(const String &str);
102 extern const char *getPlatformCode(Platform id);
103 extern const char *getPlatformAbbrev(Platform id);
104 extern const char *getPlatformDescription(Platform id);
105 
106 List<String> getPlatformList();
107 
110 } // End of namespace Common
111 
112 #endif
Definition: str.h:59
Definition: list.h:44
Platform parsePlatform(const String &str)
Definition: algorithm.h:29
Definition: platform.h:90
Platform
Definition: platform.h:46