ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

advancedDetector.h File Reference

#include "engines/metaengine.h"
#include "engines/engine.h"
#include "common/hash-str.h"
#include "common/gui_options.h"
Include dependency graph for advancedDetector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ADGameFileDescription
 A record describing a file to be matched for detecting a specific game variant. More...
struct  ADGameDescription
struct  ADDetectedGame
 A game installation matching an AD game description. More...
struct  ADFileBasedFallback
struct  ADExtraGuiOptionsMap
 Map entry for mapping GUIO_GAMEOPTIONS* to their ExtraGuiOption description. More...
class  AdvancedMetaEngine
 A MetaEngine implementation based around the advanced detector code. More...

Namespaces

namespace  Common
 

Internal interface to the QuickTime audio decoder.


Defines

#define AD_LISTEND   {NULL, 0, NULL, 0}
 A shortcut to produce an empty ADGameFileDescription record.
#define AD_ENTRY1(f, x)   {{ f, 0, x, -1}, AD_LISTEND}
 A shortcut to produce a list of ADGameFileDescription records with only one record that contains just a filename with an MD5, and no file size.
#define AD_ENTRY1s(f, x, s)   {{ f, 0, x, s}, AD_LISTEND}
 A shortcut to produce a list of ADGameFileDescription records with only one record that contains just a filename with an MD5, plus a file size.
#define AD_TABLE_END_MARKER   { NULL, NULL, { { NULL, 0, NULL, 0 } }, Common::UNK_LANG, Common::kPlatformUnknown, ADGF_NO_FLAGS, GUIO0() }
 End marker for a table of ADGameDescription structs.
#define AD_EXTRA_GUI_OPTIONS_TERMINATOR   { 0, { 0, 0, 0, 0 } }

Typedefs

typedef Common::Array
< ADDetectedGame
ADDetectedGames
 A list of games detected by the AD.

Enumerations

enum  ADGameFlags {
  ADGF_NO_FLAGS = 0, ADGF_AUTOGENTARGET = (1 << 20), ADGF_UNSTABLE = (1 << 21), ADGF_TESTING = (1 << 22),
  ADGF_PIRATED = (1 << 23), ADGF_ADDENGLISH = (1 << 24), ADGF_MACRESFORK = (1 << 25), ADGF_USEEXTRAASTITLE = (1 << 26),
  ADGF_DROPLANGUAGE = (1 << 27), ADGF_DROPPLATFORM = (1 << 28), ADGF_CD = (1 << 29), ADGF_DEMO = (1 << 30)
}
enum  ADFlags { kADFlagUseExtraAsHint = (1 << 0) }

Define Documentation

#define AD_ENTRY1 (   f,
  x 
)    {{ f, 0, x, -1}, AD_LISTEND}

A shortcut to produce a list of ADGameFileDescription records with only one record that contains just a filename with an MD5, and no file size.

Definition at line 60 of file advancedDetector.h.

#define AD_ENTRY1s (   f,
  x,
  s 
)    {{ f, 0, x, s}, AD_LISTEND}

A shortcut to produce a list of ADGameFileDescription records with only one record that contains just a filename with an MD5, plus a file size.

Definition at line 66 of file advancedDetector.h.

#define AD_EXTRA_GUI_OPTIONS_TERMINATOR   { 0, { 0, 0, 0, 0 } }

Definition at line 166 of file advancedDetector.h.

#define AD_LISTEND   {NULL, 0, NULL, 0}

A shortcut to produce an empty ADGameFileDescription record.

Used to mark the end of a list of these.

Definition at line 54 of file advancedDetector.h.

#define AD_TABLE_END_MARKER   { NULL, NULL, { { NULL, 0, NULL, 0 } }, Common::UNK_LANG, Common::kPlatformUnknown, ADGF_NO_FLAGS, GUIO0() }

End marker for a table of ADGameDescription structs.

Use this to terminate a list to be passed to the AdvancedDetector API.

Definition at line 119 of file advancedDetector.h.


Typedef Documentation

A list of games detected by the AD.

Definition at line 113 of file advancedDetector.h.


Enumeration Type Documentation

enum ADFlags
Enumerator:
kADFlagUseExtraAsHint 

Store value of extra field in config file, and use it as a hint on subsequent runs.

Could be used when there is no way to autodetect game (when more than one game sits in same directory), and user picks up a variant manually. In addition, this is useful if two variants of a game sharing the same gameid are contained in a single directory.

Definition at line 137 of file advancedDetector.h.

Enumerator:
ADGF_NO_FLAGS 
ADGF_AUTOGENTARGET 

automatically generate gameid from extra

ADGF_UNSTABLE 

flag to designate not yet officially-supported games that are not fit for public testing

ADGF_TESTING 

flag to designate not yet officially-supported games that are fit for public testing

ADGF_PIRATED 

flag to designate well known pirated versions with cracks

ADGF_ADDENGLISH 

always add English as language option

ADGF_MACRESFORK 

the md5 for this entry will be calculated from the resource fork

ADGF_USEEXTRAASTITLE 

Extra field value will be used as main game title, not gameid.

ADGF_DROPLANGUAGE 

don't add language to gameid

ADGF_DROPPLATFORM 

don't add platform to gameid

ADGF_CD 

add "-cd" to gameid

ADGF_DEMO 

add "-demo" to gameid

Definition at line 68 of file advancedDetector.h.



Generated on Sat Sep 14 2019 05:02:11 for ResidualVM by doxygen 1.7.1
curved edge   curved edge