#include <game.h>
Public Member Functions | |
DetectedGame (const Common::String &engine, const PlainGameDescriptor &pgd) | |
DetectedGame (const Common::String &engine, const Common::String &id, const Common::String &description, Common::Language language=Common::UNK_LANG, Common::Platform platform=Common::kPlatformUnknown, const Common::String &extra=Common::String(), bool unsupported=false) | |
void | setGUIOptions (const Common::String &options) |
void | appendGUIOptions (const Common::String &str) |
const Common::String & | getGUIOptions () const |
void | addExtraEntry (const Common::String &key, const Common::String &value) |
Public Attributes | |
Common::String | engineId |
bool | hasUnknownFiles |
bool | isSelected = false |
FilePropertiesMap | matchedFiles |
bool | canBeAdded |
Common::String | gameId |
Common::String | preferredTarget |
Common::String | description |
Common::Language | language |
Common::Platform | platform |
Common::Path | path |
Common::String | shortPath |
Common::String | extra |
GameSupportLevel | gameSupportLevel |
Common::StringMap | _extraConfigEntries |
Details about a given game.
While PlainGameDescriptor refers to a game supported by an engine, this refers to a game copy that has been detected by an engine's detector. It contains all the necessary data to add the game to the configuration manager and / or to launch it.
|
inline |
Allows adding of extra entries to be saved as part of the detection entry in the configuration file.
bool DetectedGame::hasUnknownFiles |
A game was detected, but some files were not recognized
This can happen when the md5 or size of the detected files did not match the engine's detection tables. When this is true, the list of matched files below contains detail about the unknown files.
bool DetectedGame::isSelected = false |
A game was detected and is selected in the Mass Add list.
FilePropertiesMap DetectedGame::matchedFiles |
An optional list of the files that were used to match the game with the engine's detection tables
bool DetectedGame::canBeAdded |
This detection entry contains enough data to add the game to the configuration manager and launch it
GameSupportLevel DetectedGame::gameSupportLevel |
What level of support is expected of this game
Common::StringMap DetectedGame::_extraConfigEntries |
A list of extra keys to write to the configuration file