aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-06 17:57:39 +0000
committerEugene Sandulenko2009-06-06 17:57:39 +0000
commiteb909702af7a1fc48c77b000cc4b4e647ebf4e60 (patch)
tree30fec2c9212ffc4bc07901c0de297476e925c05c /engines/sky
parent8eb417e15e978729b6724a9e9da38b9d6897e5de (diff)
downloadscummvm-rg350-eb909702af7a1fc48c77b000cc4b4e647ebf4e60.tar.gz
scummvm-rg350-eb909702af7a1fc48c77b000cc4b4e647ebf4e60.tar.bz2
scummvm-rg350-eb909702af7a1fc48c77b000cc4b4e647ebf4e60.zip
Add GUI options support to Sky, Queen and Sword1&2 engines (which do not use AD)
svn-id: r41274
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/detection.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/engines/sky/detection.cpp b/engines/sky/detection.cpp
index 55c61b8665..1a14703972 100644
--- a/engines/sky/detection.cpp
+++ b/engines/sky/detection.cpp
@@ -45,21 +45,22 @@ struct SkyVersion {
int dataDiskSize;
const char *extraDesc;
int version;
+ uint32 guioptions;
};
// TODO: Would be nice if Disk::determineGameVersion() used this table, too.
static const SkyVersion skyVersions[] = {
- { 232, -1, "floppy demo", 272 }, // German
- { 243, -1, "pc gamer demo", 109 },
- { 247, -1, "floppy demo", 267 }, // English
- { 1404, -1, "floppy", 288 },
- { 1413, -1, "floppy", 303 },
- { 1445, 8830435, "floppy", 348 },
- { 1445, -1, "floppy", 331 },
- { 1711, -1, "cd demo", 365 },
- { 5099, -1, "cd", 368 },
- { 5097, -1, "cd", 372 },
- { 0, 0, 0, 0 }
+ { 232, -1, "floppy demo", 272, Common::GUIO_NOSPEECH }, // German
+ { 243, -1, "pc gamer demo", 109, Common::GUIO_NOSPEECH },
+ { 247, -1, "floppy demo", 267, Common::GUIO_NOSPEECH }, // English
+ { 1404, -1, "floppy", 288, Common::GUIO_NOSPEECH },
+ { 1413, -1, "floppy", 303, Common::GUIO_NOSPEECH },
+ { 1445, 8830435, "floppy", 348, Common::GUIO_NOSPEECH },
+ { 1445, -1, "floppy", 331, Common::GUIO_NOSPEECH },
+ { 1711, -1, "cd demo", 365, Common::GUIO_NONE },
+ { 5099, -1, "cd", 368, Common::GUIO_NONE },
+ { 5097, -1, "cd", 372, Common::GUIO_NONE },
+ { 0, 0, 0, 0, 0 }
};
class SkyMetaEngine : public MetaEngine {
@@ -155,6 +156,7 @@ GameList SkyMetaEngine::detectGames(const Common::FSList &fslist) const {
char buf[32];
snprintf(buf, sizeof(buf), "v0.0%d %s", sv->version, sv->extraDesc);
dg.updateDesc(buf);
+ dg.setGUIOptions(sv->guioptions);
break;
}
++sv;