TrustedUser
2,147
edits
(→Generated targets: Fix syntax) |
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 | ||
< | <syntaxhighlight lang="INI"> | ||
[scummvm] | [scummvm] | ||
globalkey1=foo | globalkey1=foo | ||
Line 79: | Line 79: | ||
== PlainGameDescriptor table == | == PlainGameDescriptor table == | ||
< | <syntaxhighlight lang="cpp"> | ||
struct PlainGameDescriptor { | struct PlainGameDescriptor { | ||
const char *gameid; | const char *gameid; | ||
Line 92: | Line 92: | ||
Typical PlainGameDescriptor table: | Typical PlainGameDescriptor table: | ||
< | <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: | ||
< | <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: | ||
< | <syntaxhighlight lang="cpp"> | ||
static const ADGameDescription gameDescriptions[] = { | static const ADGameDescription gameDescriptions[] = { | ||
{ | { | ||
Line 153: | Line 153: | ||
== ADGameFileDescription structure == | == ADGameFileDescription structure == | ||
< | <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 == | ||
< | <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 == | ||
< | <syntaxhighlight lang="cpp"> | ||
AdvancedMetaEngine(const void *descs, uint descItemSize, const PlainGameDescriptor *gameids); | AdvancedMetaEngine(const void *descs, uint descItemSize, const PlainGameDescriptor *gameids); | ||
</source> | </source> |