Difference between revisions of "Advanced Detector"

Jump to navigation Jump to search
72 bytes added ,  15:02, 25 October 2018
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
Line 29: Line 29:


When you look into your .scummvmrc or scummvm.ini (depending on the platform), you will find that generally it has following structure
When you look into your .scummvmrc or scummvm.ini (depending on the platform), you will find that generally it has following structure
<source lang="INI">
<syntaxhighlight lang="INI">
[scummvm]
[scummvm]
globalkey1=foo
globalkey1=foo
Line 79: Line 79:
== PlainGameDescriptor table ==
== PlainGameDescriptor table ==


<source lang="cpp">
<syntaxhighlight lang="cpp">
struct PlainGameDescriptor {
struct PlainGameDescriptor {
const char *gameid;
const char *gameid;
Line 92: Line 92:
Typical PlainGameDescriptor table:
Typical PlainGameDescriptor table:


<source lang="cpp">
<syntaxhighlight lang="cpp">
static const PlainGameDescriptor cineGames[] = {
static const PlainGameDescriptor cineGames[] = {
{"cine", "Cinematique evo.1 engine game"},
{"cine", "Cinematique evo.1 engine game"},
Line 107: Line 107:
ADGameDescription table has the following structure:
ADGameDescription table has the following structure:


<source lang="cpp">
<syntaxhighlight lang="cpp">
struct ADGameDescription {
struct ADGameDescription {
const char *gameid;
const char *gameid;
Line 136: Line 136:
Typical ADGameDescription table will look as follows:
Typical ADGameDescription table will look as follows:


<source lang="cpp">
<syntaxhighlight lang="cpp">
static const ADGameDescription gameDescriptions[] = {
static const ADGameDescription gameDescriptions[] = {
{
{
Line 153: Line 153:
== ADGameFileDescription structure ==
== ADGameFileDescription structure ==


<source lang="cpp">
<syntaxhighlight lang="cpp">
struct ADGameFileDescription {
struct ADGameFileDescription {
const char *fileName; ///< Name of described file.
const char *fileName; ///< Name of described file.
Line 202: Line 202:
== Upgrading obsolete gameids ==
== Upgrading obsolete gameids ==


<source lang="cpp">
<syntaxhighlight lang="cpp">
static const Engines::ObsoleteGameID obsoleteGameIDsTable[] = {
static const Engines::ObsoleteGameID obsoleteGameIDsTable[] = {
         {"simon1acorn", "simon1", Common::kPlatformAcorn},
         {"simon1acorn", "simon1", Common::kPlatformAcorn},
Line 219: Line 219:
== Engine constructor ==
== Engine constructor ==


<source lang="cpp">
<syntaxhighlight lang="cpp">
AdvancedMetaEngine(const void *descs, uint descItemSize, const PlainGameDescriptor *gameids);
AdvancedMetaEngine(const void *descs, uint descItemSize, const PlainGameDescriptor *gameids);
</source>
</source>
TrustedUser
2,147

edits

Navigation menu