namespace Fullpipe { static const ADGameDescription gameDescriptions[] = { // Fullpipe Russian version { "fullpipe", 0, AD_ENTRY1s("0654.sc2", "099f54f86d33ad2395f3b854b7e05058", 2272), Common::RU_RUS, Common::kPlatformWindows, ADGF_DROPPLATFORM, GUIO1(GUIO_NONE) }, // Fullpipe German version { "fullpipe", 0, AD_ENTRY1s("0654.sc2", "d8743351fc53d205f42d91f6d791e51b", 2272), Common::RU_RUS, Common::kPlatformWindows, ADGF_DROPPLATFORM, GUIO1(GUIO_NONE) }, AD_TABLE_END_MARKER }; } // End of namespace Fullpipe
namespace CGE { static const ADGameDescription gameDescriptions[] = { { "soltys", "", { {"vol.cat", 0, "0c33e2c304821a2444d297fc5e2d67c6", 50176}, {"vol.dat", 0, "f9ae2e7f8f7cac91378cdafca43faf1e", 8437572}, AD_LISTEND }, Common::PL_POL, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, { "soltys", "Soltys Freeware", { {"vol.cat", 0, "0c33e2c304821a2444d297fc5e2d67c6", 50176}, {"vol.dat", 0, "f9ae2e7f8f7cac91378cdafca43faf1e", 8437676}, AD_LISTEND }, Common::PL_POL, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, // English ScummVM version { "soltys", "", { {"vol.cat", 0, "bd08969b5f1acea0f92d195f750c17d5", 50176}, {"vol.dat", 0, "f9ae2e7f8f7cac91378cdafca43faf1e", 8428832}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, { "soltys", "Soltys Demo (not supported)", { {"vol.cat", 0, "1e077c8ff58109a187f07ac54b0c873a", 18788}, {"vol.dat", 0, "75d385a6074c58b69f7730481f256051", 1796710}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformPC, ADGF_DEMO , GUIO1(GUIO_NONE) }, { "soltys", "Soltys Demo (not supported)", { {"vol.cat", 0, "f17987487fab1ebddd781d8d02fedecc", 7168}, {"vol.dat", 0, "c5d9b15863cab61dc125551576dece04", 1075272}, AD_LISTEND }, Common::PL_POL, Common::kPlatformPC, ADGF_DEMO , GUIO1(GUIO_NONE) }, AD_TABLE_END_MARKER }; static const ADFileBasedFallback fileBasedFallback[] = { { &gameDescriptions[0], { "vol.cat", "vol.dat", 0 } }, { 0, { 0 } } }; } // End of namespace CGE
namespace Pegasus { static const PegasusGameDescription gameDescriptions[] = { { { "pegasus", "", AD_ENTRY1s("JMP PP Resources", "d13a602d2498010d720a6534f097f88b", 2009943), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_MACRESFORK, GUIO0() }, }, { { "pegasus", "Demo", AD_ENTRY1s("JMP PP Resources", "d13a602d2498010d720a6534f097f88b", 360129), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_MACRESFORK | ADGF_DEMO, GUIO1(GUIO_NOLAUNCHLOAD) }, }, { { "pegasus", "DVD Demo", AD_ENTRY1s("JMP PP Resources", "d0fcda50dc75c7a81ae314e6a813f4d2", 93495), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_MACRESFORK | ADGF_DEMO | GF_DVD, GUIO1(GUIO_NOLAUNCHLOAD) }, }, { { "pegasus", "DVD Demo", AD_ENTRY1s("JMP PP Resources", "d0fcda50dc75c7a81ae314e6a813f4d2", 93495), Common::EN_ANY, Common::kPlatformWindows, ADGF_MACRESFORK | ADGF_DEMO | GF_DVD, GUIO1(GUIO_NOLAUNCHLOAD) }, }, { AD_TABLE_END_MARKER } }; } // End of namespace Pegasus
DreamWebMetaEngine(): AdvancedMetaEngine(DreamWeb::gameDescriptions, sizeof(DreamWeb::DreamWebGameDescription), dreamWebGames, gameGuiOptions) { _singleId = "dreamweb"; _guiOptions = GUIO1(GUIO_NOMIDI); }
LureMetaEngine() : AdvancedMetaEngine(Lure::gameDescriptions, sizeof(Lure::LureGameDescription), lureGames) { _md5Bytes = 1024; _singleid = "lure"; // Use kADFlagUseExtraAsHint to distinguish between EGA and VGA versions // of italian Lure when their datafiles sit in the same directory. _flags = kADFlagUseExtraAsHint; _guioptions = GUIO1(GUIO_NOSPEECH); }
namespace ZVision { static const ZVisionGameDescription gameDescriptions[] = { { // Zork Nemesis English version { "znemesis", 0, AD_ENTRY1s("CSCR.ZFS", "88226e51a205d2e50c67a5237f3bd5f2", 2397741), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, GID_NEMESIS }, { // Zork Grand Inquisitor English version { "zgi", 0, AD_ENTRY1s("SCRIPTS.ZFS", "81efd40ecc3d22531e211368b779f17f", 8336944), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, GID_GRANDINQUISITOR }, { AD_TABLE_END_MARKER, GID_NONE } }; } // End of namespace ZVision
namespace Deskadv { static const DeskadvGameDescription gameDescriptions[] = { // Indiana Jones Desktop Adventures - English { { "indydesk", 0, {{"desktop.daw", 0, "173efd0c8aa63f20752445c07d9afd15", -1}, {"deskadv.exe", 0, "df36d397f90f19f5daed425403cf9538", -1}, AD_LISTEND}, Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, GType_Indy }, // Indiana Jones Desktop Adventures (Demo) - English { { "indydesk", "Demo", {{"desktop.daw", 0, "c30d601f7fabc01cfa9bda154a99edb9", -1}, {"deskadv.exe", 0, "2d561e0cfd8b3d9035af2e612e28eba8", -1}, AD_LISTEND}, Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO1(GUIO_NONE) }, GType_Indy }, // Yoda Stories - English { { "yodadesk", 0, {{"yodesk.dta", 0, "1d2afd3a6af3ff71c31582757060427d", -1}, {"yodesk.exe", 0, "8c2a17262a9b93e3f8f198dc922e8e67", -1}, AD_LISTEND}, Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, GType_Yoda }, // Yoda Stories (Demo) - English { { "yodadesk", "Demo", {{"yodademo.dta", 0, "1d2afd3a6af3ff71c31582757060427d", -1}, {"yodademo.exe", 0, "6298347428cb02cf6a6d923ffc46f8ac", -1}, AD_LISTEND}, Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO1(GUIO_NONE) }, GType_Yoda }, { AD_TABLE_END_MARKER, 0 } }; } // End of namespace Deskadv
TSageMetaEngine() : AdvancedMetaEngine(TsAGE::gameDescriptions, sizeof(TsAGE::tSageGameDescription), tSageGameTitles) { _singleid = "tsage"; _guioptions = GUIO1(GUIO_NOSPEECH); }
namespace Neverhood { static const NeverhoodGameDescription gameDescriptions[] = { { // Neverhood English version { "neverhood", 0, AD_ENTRY1s("hd.blb", "22958d968458c9ff221aee38577bb2b2", 4279716), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, { // Neverhood English demo version { "neverhood", "Demo", AD_ENTRY1s("nevdemo.blb", "05b735cfb1086892bec79b54dca5545b", 22564568), Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, { // Neverhood earlier English demo version { "neverhood", "Demo", AD_ENTRY1s("nevdemo.blb", "9cbc33bc8ebacacfc8071f3e26a9c85f", 22357020), Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, { // Neverhood Russian version. Dyadyushka Risech { "neverhood", "DR", AD_ENTRY1s("hd.blb", "787951bf094aad9962291e69a707bdde", 4248635), Common::RU_RUS, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, // FIXME: Disabled for now, as it has broken resources that corrupt the heap // (e.g. the menu header). #if 0 { // Neverhood Russian version. Fargus { "neverhood", "Fargus", AD_ENTRY1s("hd.blb", "c87c69db423f560d3708e9de78751a7f", 4425816), Common::RU_RUS, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, #endif { AD_TABLE_END_MARKER, 0, 0, 0, 0 } }; } // End of namespace Neverhood
namespace Composer { static const ComposerGameDescription gameDescriptions[] = { // Magic Tales: Baba Yaga and the Magic Geese - from bug #3485018 { { "babayaga", "", AD_ENTRY1s("book.ini", "412b7f4b0ef07f442009d28e3a819974", 3852), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV1 }, // Magic Tales: Baba Yaga and the Magic Geese Mac - from bug #3466402 { { "babayaga", "", AD_ENTRY1("Baba Yaga", "ae3a4445f42fe10253da7ee4ea0d37"), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV1 }, // Magic Tales: Imo and the King - from bug #3485018 { { "imoking", "", AD_ENTRY1s("book.ini", "62b52a1763cce7d7d6ccde9f9d32fd4b", 3299), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV1 }, // Magic Tales: Imo and the King Mac - from bug #3466402 { { "imoking", "", AD_ENTRY1("imo and the king", "b0277885fec943b5f19409f35b33964c"), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV1 }, // Magic Tales: The Little Samurai - from bug #3485018 { { "littlesamurai", "", AD_ENTRY1s("book.ini", "7a851869d022a9041e0dd11e5bace09b", 3747), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV1 }, // Magic Tales: The Little Samurai Mac - from bug #3466402 { { "littlesamurai", "", AD_ENTRY1("The Little Samurai", "38121dd649c24e8676aa108cf35d44b5"), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV1 }, // from Liam Finds a Story CD { { "magictales", "Magic Tales Demo: Baby Yaga, Samurai, Imo", AD_ENTRY1("book.ini", "dbc98c566f4ac61b544443524585dccb"), Common::EN_ANY, Common::kPlatformWindows, ADGF_USEEXTRAASTITLE | ADGF_DEMO, GUIO1(GUIO_NOASPECT) }, GType_ComposerV1 }, { { "liam", 0, AD_ENTRY1s("book.ini", "fc9d9b9e72e7301d011b808606eaa15b", 834), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, // Liam Finds a Story Mac - from bug #3463201 { { "liam", 0, { {"liam finds a story.ini", 0, "85a1ca6002ded8572920bbdb73d35b0a", -1}, {"page99.rsc", 0, "11b0a19c6b6d73c39e2bd289a457c1dc", -1}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, // from Liam Finds a Story CD { { "magictales", "Magic Tales Demo: Sleeping Cub, Princess & Crab", AD_ENTRY1("book.ini", "3dede2522bb0886c95667b082987a87f"), Common::EN_ANY, Common::kPlatformWindows, ADGF_USEEXTRAASTITLE | ADGF_DEMO, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { { "darby", 0, { {"book.ini", 0, "7e3404c559d058521fff2aebe5c427a8", 2545}, {"page99.rsc", 0, "49cc6b16caa1c5ec7d94a3c47eed9a02", 1286480}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { { "darby", 0, AD_ENTRY1("Darby the Dragon.ini", "d81f9214936fa70d42fc578908d4bb3d"), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { // Provided by Strangerke, "CD-Rom 100% Malin" Pack { "darby", 0, AD_ENTRY1("book.ini", "285308372f7dddff2ca5a25c9192cf5c"), Common::FR_FRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { { "gregory", 0, { {"book.ini", 0, "14a562dcf361773445255af9f3e94790", 2234}, {"page99.rsc", 0, "01f9381162467e052dfd4c704169ef3e", 388644}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { { "gregory", 0, AD_ENTRY1("Gregory.ini", "fa82f14731f28c7379c5a106df07a0d6"), Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { // Provided by Strangerke, "CD-Rom 100% Malin" Pack { "gregory", 0, AD_ENTRY1("book.ini", "e54fc5c00de5f94e908a969e445af5d0"), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { // Provided by sev { "princess", 0, { {"book.ini", 0, "fb32572577b9a41ba299825ef1e3181e", 966}, {"page99.rsc", 0, "fd5ebd3b5e36c4651c50241619525355", 45418}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, // The Princess and the Crab Mac - From Bug #3461984 { { "princess", 0, { {"the princess and the crab.ini", 0, "f6b551a7304643004bd5e4df7ac1e76e", -1}, {"page99.rsc", 0, "fd5ebd3b5e36c4651c50241619525355", -1}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { // Provided by sev { "sleepingcub", 0, { {"book.ini", 0, "0d329e592387009c6387a733a3ea2235", 964}, {"page99.rsc", 0, "219fbd9bd2ff87c7023814405d753145", 46916}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, // Sleeping Cub Mac - From Bug #3461369 { { "sleepingcub", 0, { {"sleeping cub.ini", 0, "39642a4036cb51443f5e90052c3ad0b2", -1}, {"page99.rsc", 0, "219fbd9bd2ff87c7023814405d753145", -1}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformMacintosh, ADGF_NO_FLAGS, GUIO1(GUIO_NOASPECT) }, GType_ComposerV2 }, { AD_TABLE_END_MARKER, 0 } }; } // End of namespace Composer
namespace LastExpress { static const PlainGameDescriptor lastExpressGames[] = { // Games {"lastexpress", "The Last Express"}, {0, 0} }; static const ADGameDescription gameDescriptions[] = { // The Last Express (English) - US Broderbund Release // expressw.exe 1997-02-12 17:24:44 // express.exe 1997-02-12 17:29:08 { "lastexpress", "", { {"HD.HPF", 0, "2d331459e0e68cf277ef4e4043750413", 29865984}, // 1997-02-10 19:38:19 {"CD1.HPF", 0, "8c86db47304033fcff32c69fddd5a920", 525522944}, // 1997-02-10 17:04:40 {"CD2.HPF", 0, "58aa26e782d10ec5d2231e539d2fe6a2", 669581312}, // 1997-02-10 16:19:30 {"CD3.HPF", 0, "00554fbf78a2ad391d98578fbbbe1c48", 641128448}, // 1997-02-10 15:44:09 }, Common::EN_ANY, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (English) - UK Broderbund Release // expressw.exe 1997-04-02 14:30:32 // express.exe 1997-04-02 15:00:50 { "lastexpress", "", { {"HD.HPF", 0, "2d331459e0e68cf277ef4e4043750413", 29865984}, // 1997-04-10 11:03:41 {"CD1.HPF", 0, "8c86db47304033fcff32c69fddd5a920", 525522944}, // 1997-04-10 11:03:36 {"CD2.HPF", 0, "2672348691e1ae22d37d9f46f3683a07", 669509632}, // 1997-04-11 09:48:33 {"CD3.HPF", 0, "33f5e35f51063cb90f6bed9974475aa6", 641056768}, // 1997-04-11 09:48:55 }, Common::EN_ANY, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (English) - Interplay Release // expressw.exe ??? // express.exe ??? { "lastexpress", "", { {"HD.HPF", 0, "bcc32d977f92bb52c060a0b4e8589cac", 30715904}, {"CD1.HPF", 0, "8c86db47304033fcff32c69fddd5a920", 525522944}, {"CD2.HPF", 0, "58aa26e782d10ec5d2231e539d2fe6a2", 669581312}, {"CD3.HPF", 0, "00554fbf78a2ad391d98578fbbbe1c48", 641128448}, }, Common::EN_ANY, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (Demo - English) - Broderbund // expressw.exe 1997-08-14 14:09:42 // express.exe 1997-08-14 14:19:34 { "lastexpress", "Demo", { {"Demo.HPF", 0, "baf3b1f64155d34872896e61c3d3cb78", 58191872}, // 1997-08-14 14:44:26 }, Common::EN_ANY, Common::kPlatformUnknown, ADGF_DEMO | ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (French) - Broderbund Release // expressw.exe 1997-04-02 09:31:24 // express.exe 1997-04-02 10:01:12 { "lastexpress", "", { {"HD.HPF", 0, "c14c6d685d9bf8705d9f659062e6c5c2", 29505536}, // 1997-04-03 07:53:20 {"CD1.HPF", 0, "b4277b22bc5cd6ad3b00c2ec04d4645d", 522924032}, // 1997-04-03 07:53:14 {"CD2.HPF", 0, "8c9610aa4cb707ab51f61c30feb22c1a", 665710592}, // 1997-04-09 12:04:30 {"CD3.HPF", 0, "411c1bab57b3e8da4fb359c5b40ef5d7", 640884736}, // 1997-04-03 08:21:47 }, Common::FR_FRA, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (German) // expressw.exe ??? // express.exe ??? { "lastexpress", "", { {"HD.HPF", 0, "7cdd70fc0b1555785f1e9e8d371ea85c", 31301632}, // 1997-04-08 14:33:42 {"CD1.HPF", 0, "6d74cc861d172466bc745ff8bf0e59c5", 522971136}, // 1997-04-08 13:05:56 {"CD2.HPF", 0, "b71ac9391de415807c74ff078f4fab22", 655702016}, // 1997-04-08 15:26:14 {"CD3.HPF", 0, "ee55d4310546dd2a38560b096d1c2771", 641144832}, // 1997-04-05 18:35:50 }, Common::DE_DEU, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (Spanish) // expressw.exe 1997-04-02 07:30:32 // express.exe 1997-04-02 09:00:50 { "lastexpress", "", { {"HD.HPF", 0, "46bed8832f06cf7160883a2aae2d667f", 29657088}, // 1997-09-30 20:43:54 {"CD1.HPF", 0, "367a3a8581f6f88ddc51af7cde105ba9", 519927808}, // 1997-09-28 19:30:38 {"CD2.HPF", 0, "af5566df3000472852ec182c9ec57797", 662210560}, // 1997-10-03 05:36:20 {"CD3.HPF", 0, "0d1901662f4d063a5c250c9fbf64b771", 639504384}, // 1997-09-28 19:55:34 }, Common::ES_ESP, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (Italian) // expressw.exe 1997-09-15 12:11:56 // express.exe 1997-09-15 12:41:46 { "lastexpress", "", { {"HD.HPF", 0, "5539e78fd7eecb70bc858e86b5709fe9", 29562880}, // 1997-12-11 14:11:52 {"CD1.HPF", 0, "3c1c80b41f2c454b7b89dcb32648796c", 522328064}, // 1997-12-11 14:39:46 {"CD2.HPF", 0, "ea6414d5a718501cfd55de3884f4431d", 665411584}, // 1997-12-11 15:20:26 {"CD3.HPF", 0, "a5bd5b58acddbd951d4551f68de22025", 637718528}, // 1997-12-11 15:58:44 }, Common::IT_ITA, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, // The Last Express (Russian) // expressw.exe 1999-04-05 15:33:56 // express.exe ??? { "lastexpress", "", { {"HD.HPF", 0, "a9e915c20f3231c5a1ac4455286971bb", 29908992}, // 1999-04-08 12:43:56 {"CD1.HPF", 0, "80fbb95c9228353436b7b38e4b5bb64d", 525805568}, // 1999-04-07 13:30:14 {"CD2.HPF", 0, "a1c8c344754e03eaa86eaabc6024709e", 677289984}, // 1999-04-07 16:19:56 {"CD3.HPF", 0, "ea5adac447e59ea6d4a1737abad46480", 642584576}, // 1999-04-07 17:26:18 }, Common::RU_RUS, Common::kPlatformUnknown, ADGF_UNSTABLE, GUIO1(GUIO_NOASPECT) }, AD_TABLE_END_MARKER }; class LastExpressMetaEngine : public AdvancedMetaEngine { public: LastExpressMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(ADGameDescription), lastExpressGames) { _singleId = "lastexpress"; _guiOptions = GUIO2(GUIO_NOSUBTITLES, GUIO_NOSFX); } const char *getName() const { return "Lastexpress"; } const char *getOriginalCopyright() const { return "LastExpress Engine (C) 1997 Smoking Car Productions"; } protected: bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const; }; bool LastExpressMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const { if (gd) { *engine = new LastExpressEngine(syst, (const ADGameDescription *)gd); } return gd != 0; } bool LastExpressEngine::isDemo() const { return (bool)(_gameDescription->flags & ADGF_DEMO); } } // End of namespace LastExpress
namespace Drascula { static const DrasculaGameDescription gameDescriptions[] = { { // Drascula English version { "drascula", 0, AD_ENTRY1s("14.ald", "09b2735953edcd43af115c65ae00b10e", 1595), Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // Drascula English version (original packed files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, // HACK: List packet.001 twice to ensure this detector entry // is ranked just as high as the others (which each have two // detection files). {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {NULL, 0, NULL, 0} }, Common::EN_ANY, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { // Drascula German version (original packed files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.003", 1, "e8f4dc6091037329bab4ddb1cba35807", 719728}, {NULL, 0, NULL, 0} }, Common::DE_DEU, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { // Drascula French version (original packed files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.002", 1, "4401123400f22f212b89f15fb4b43013", 721122}, {NULL, 0, NULL, 0} }, Common::FR_FRA, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { // Drascula Spanish version (original packed version) { "drascula", 0, AD_ENTRY1s("packet.001", "3c971aba65a037d29d0b479cad6f5943", 31702652), Common::ES_ESP, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { // Drascula Spanish version { "drascula", 0, AD_ENTRY1s("14.ald", "0746ed1a5cc8d9728f790c29813f4b43", 23059), Common::ES_ESP, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // Drascula German version { "drascula", 0, AD_ENTRY1s("14.ald", "72e46089033d56bad1c179ac36e2a9d2", 610), Common::DE_DEU, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // Drascula French version { "drascula", 0, AD_ENTRY1s("14.ald", "eeeee96b82169003630e08992248296c", 608), Common::FR_FRA, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // Drascula Italian version (original packed version) { "drascula", 0, AD_ENTRY1s("packet.001", "0253e924af223f5fe52537023385159b", 32564209), Common::IT_ITA, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { // Drascula Italian version { "drascula", 0, AD_ENTRY1s("14.ald", "02b49a18328d0bf2efe6ba658c9c7a1d", 2098), Common::IT_ITA, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // Drascula Spanish version (ScummVM repacked files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.004", 1, "a289d3cf80d50f25ec569b653248437e", 17205838}, {NULL, 0, NULL, 0} }, Common::ES_ESP, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { // Drascula Italian version (ScummVM repacked files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.005", 1, "58caac54b891f5d7f335e710e45e5d29", 16209623}, {NULL, 0, NULL, 0} }, Common::IT_ITA, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { // Drascula French version (ScummVM repacked files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.002", 1, "7b83cedb9bb326ed5143e5c459508d43", 722383}, {NULL, 0, NULL, 0} }, Common::FR_FRA, Common::kPlatformPC, GF_PACKED, GUIO1(GUIO_NONE) }, }, { AD_TABLE_END_MARKER } }; } // End of namespace Drascula
namespace DM { static const PlainGameDescriptor DMGames[] = { {"dm", "Dungeon Master"}, {0, 0} }; static const DMADGameDescription gameDescriptions[] = { { {"dm", "Amiga 2.0v English", { {"graphics.dat", 0, "c2205f6225bde728417de29394f97d55", 411960}, {"Dungeon.dat", 0, "43a213da8eda413541dd12f90ce202f6", 25006}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformAmiga, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, kDMSaveTargetDM21, kDMSaveFormatAmigaPC98FmTowns, kDMSavePlatformAmiga, { kDMSaveTargetDM21, kDMSaveTargetEndOfList }, { kDMSaveFormatAmigaPC98FmTowns, kDMSaveFormatEndOfList}, { kDMSavePlatformAcceptAny} }, { {"dm", "Atari ???v English", { {"graphics.dat", 0, "6ffff2a17e2df0effa9a12fb4b1bf6b6", 271911}, {"Dungeon.dat", 0, "be9468b460515741babec9a70501e2e9", 33286}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformAtariST, ADGF_NO_FLAGS, GUIO1(GUIO_NONE), }, kDMSaveTargetDM21, kDMSaveFormatAmigaPC98FmTowns, kDMSavePlatformAtariSt, { kDMSaveTargetDM21, kDMSaveTargetEndOfList}, { kDMSaveFormatAmigaPC98FmTowns, kDMSaveFormatEndOfList}, { kDMSavePlatformAcceptAny } }, { AD_TABLE_END_MARKER, kDMSaveTargetNone, kDMSaveFormatNone, kDMSavePlatformNone, {kDMSaveTargetNone}, {kDMSaveFormatNone}, {kDMSavePlatformNone} } }; static const ADExtraGuiOptionsMap optionsList[] = { AD_EXTRA_GUI_OPTIONS_TERMINATOR }; class DMMetaEngine : public AdvancedMetaEngine { public: DMMetaEngine() : AdvancedMetaEngine(DM::gameDescriptions, sizeof(DMADGameDescription), DMGames, optionsList) { _singleId = "dm"; } virtual const char *getName() const { return "Dungeon Master"; } virtual const char *getOriginalCopyright() const { return "Dungeon Master (C) 1987 FTL Games"; } virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const { if (desc) *engine = new DM::DMEngine(syst, (const DMADGameDescription*)desc); return desc != nullptr; } virtual bool hasFeature(MetaEngineFeature f) const { return (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup) || (f == kSavesSupportThumbnail) || (f == kSavesSupportMetaInfo) || (f == kSavesSupportCreationDate); } virtual int getMaximumSaveSlot() const { return 99; } virtual SaveStateList listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); SaveGameHeader header; Common::String pattern = target; pattern += ".###"; Common::StringArray filenames; filenames = saveFileMan->listSavefiles(pattern.c_str()); SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { // Obtain the last 3 digits of the filename, since they correspond to the save slot int slotNum = atoi(file->c_str() + file->size() - 3); if ((slotNum >= 0) && (slotNum <= 999)) { Common::InSaveFile *in = saveFileMan->openForLoading(file->c_str()); if (in) { if (DM::readSaveGameHeader(in, &header)) saveList.push_back(SaveStateDescriptor(slotNum, header._descr.getDescription())); delete in; } } } // Sort saves based on slot number. Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const { Common::String filename = Common::String::format("%s.%03u", target, slot); Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(filename.c_str()); if (in) { DM::SaveGameHeader header; bool successfulRead = DM::readSaveGameHeader(in, &header); delete in; if (successfulRead) { SaveStateDescriptor desc(slot, header._descr.getDescription()); return header._descr; } } return SaveStateDescriptor(); } virtual void removeSaveState(const char *target, int slot) const {} }; }
StarkMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(ADGameDescription), starkGames) { _singleId = "stark"; _guiOptions = GUIO1(GUIO_NOMIDI); }
const ADGameDescription *SciMetaEngine::fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { bool foundResMap = false; bool foundRes000 = false; // Set some defaults s_fallbackDesc.extra = ""; s_fallbackDesc.language = Common::EN_ANY; s_fallbackDesc.flags = ADGF_NO_FLAGS; s_fallbackDesc.platform = Common::kPlatformPC; // default to PC platform s_fallbackDesc.gameid = "sci"; s_fallbackDesc.guioptions = GUIO0(); if (allFiles.contains("resource.map") || allFiles.contains("Data1") || allFiles.contains("resmap.001") || allFiles.contains("resmap.001")) { foundResMap = true; } // Determine if we got a CD version and set the CD flag accordingly, by checking for // resource.aud for SCI1.1 CD games, or audio001.002 for SCI1 CD games. We assume that // the file should be over 10MB, as it contains all the game speech and is usually // around 450MB+. The size check is for some floppy game versions like KQ6 floppy, which // also have a small resource.aud file if (allFiles.contains("resource.aud") || allFiles.contains("audio001.002")) { Common::FSNode file = allFiles.contains("resource.aud") ? allFiles["resource.aud"] : allFiles["audio001.002"]; Common::SeekableReadStream *tmpStream = file.createReadStream(); if (tmpStream->size() > 10 * 1024 * 1024) { // We got a CD version, so set the CD flag accordingly s_fallbackDesc.flags |= ADGF_CD; } delete tmpStream; } if (allFiles.contains("resource.000") || allFiles.contains("resource.001") || allFiles.contains("ressci.000") || allFiles.contains("ressci.001")) foundRes000 = true; // Data1 contains both map and volume for SCI1.1+ Mac games if (allFiles.contains("Data1")) { foundResMap = foundRes000 = true; s_fallbackDesc.platform = Common::kPlatformMacintosh; } // Determine the game platform // The existence of any of these files indicates an Amiga game if (allFiles.contains("9.pat") || allFiles.contains("spal") || allFiles.contains("patch.005") || allFiles.contains("bank.001")) s_fallbackDesc.platform = Common::kPlatformAmiga; // The existence of 7.pat or patch.200 indicates a Mac game if (allFiles.contains("7.pat") || allFiles.contains("patch.200")) s_fallbackDesc.platform = Common::kPlatformMacintosh; // The data files for Atari ST versions are the same as their DOS counterparts // If these files aren't found, it can't be SCI if (!foundResMap && !foundRes000) { return 0; } ResourceManager resMan; resMan.addAppropriateSources(fslist); resMan.init(true); // TODO: Add error handling. #ifndef ENABLE_SCI32 // Is SCI32 compiled in? If not, and this is a SCI32 game, // stop here if (getSciVersion() >= SCI_VERSION_2) { return (const ADGameDescription *)&s_fallbackDesc; } #endif ViewType gameViews = resMan.getViewType(); // Have we identified the game views? If not, stop here // Can't be SCI (or unsupported SCI views). Pinball Creep by sierra also uses resource.map/resource.000 files // but doesnt share sci format at all, if we dont return 0 here we will detect this game as SCI if (gameViews == kViewUnknown) { return 0; } // Set the platform to Amiga if the game is using Amiga views if (gameViews == kViewAmiga) s_fallbackDesc.platform = Common::kPlatformAmiga; // Determine the game id Common::String sierraGameId = resMan.findSierraGameId(); // If we don't have a game id, the game is not SCI if (sierraGameId.empty()) { return 0; } Common::String gameId = convertSierraGameId(sierraGameId, &s_fallbackDesc.flags, resMan); strncpy(s_fallbackGameIdBuf, gameId.c_str(), sizeof(s_fallbackGameIdBuf) - 1); s_fallbackGameIdBuf[sizeof(s_fallbackGameIdBuf) - 1] = 0; // Make sure string is NULL terminated s_fallbackDesc.gameid = s_fallbackGameIdBuf; // Try to determine the game language // Load up text 0 and start looking for "#" characters // Non-English versions contain strings like XXXX#YZZZZ // Where XXXX is the English string, #Y a separator indicating the language // (e.g. #G for German) and ZZZZ is the translated text // NOTE: This doesn't work for games which use message instead of text resources // (like, for example, Eco Quest 1 and all SCI1.1 games and newer, e.g. Freddy Pharkas). // As far as we know, these games store the messages of each language in separate // resources, and it's not possible to detect that easily // Also look for "%J" which is used in japanese games Resource *text = resMan.findResource(ResourceId(kResourceTypeText, 0), 0); uint seeker = 0; if (text) { while (seeker < text->size) { if (text->data[seeker] == '#') { if (seeker + 1 < text->size) s_fallbackDesc.language = charToScummVMLanguage(text->data[seeker + 1]); break; } if (text->data[seeker] == '%') { if ((seeker + 1 < text->size) && (text->data[seeker + 1] == 'J')) { s_fallbackDesc.language = charToScummVMLanguage(text->data[seeker + 1]); break; } } seeker++; } } // Fill in "extra" field // Is this an EGA version that might have a VGA pendant? Then we want // to mark it as such in the "extra" field. const bool markAsEGA = (gameViews == kViewEga && s_fallbackDesc.platform != Common::kPlatformAmiga && getSciVersion() > SCI_VERSION_1_EGA_ONLY); const bool isDemo = (s_fallbackDesc.flags & ADGF_DEMO); const bool isCD = (s_fallbackDesc.flags & ADGF_CD); if (!isCD) s_fallbackDesc.guioptions = GUIO1(GUIO_NOSPEECH); if (gameId.hasSuffix("sci")) { s_fallbackDesc.extra = "SCI"; // Differentiate EGA versions from the VGA ones, where needed if (markAsEGA) s_fallbackDesc.extra = "SCI/EGA"; // Mark as demo. // Note: This overwrites the 'EGA' info, if it was previously set. if (isDemo) s_fallbackDesc.extra = "SCI/Demo"; } else { if (markAsEGA) s_fallbackDesc.extra = "EGA"; // Set "CD" and "Demo" as appropriate. // Note: This overwrites the 'EGA' info, if it was previously set. if (isDemo && isCD) s_fallbackDesc.extra = "CD Demo"; else if (isDemo) s_fallbackDesc.extra = "Demo"; else if (isCD) s_fallbackDesc.extra = "CD"; } return &s_fallbackDesc; }
namespace Drascula { static const DrasculaGameDescription gameDescriptions[] = { //// Packed versions ////////////////////////////////////////////////////// { // Drascula English version (original packed files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, // HACK: List packet.001 twice to ensure this detector entry // is ranked just as high as the others (which each have two // detection files). {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {NULL, 0, NULL, 0} }, Common::EN_ANY, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula French version (original packed files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.002", 1, "4401123400f22f212b89f15fb4b43013", 721122}, {NULL, 0, NULL, 0} }, Common::FR_FRA, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula French version (ScummVM repacked files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.002", 1, "7b83cedb9bb326ed5143e5c459508d43", 722383}, {NULL, 0, NULL, 0} }, Common::FR_FRA, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula German version (original packed files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.003", 1, "e8f4dc6091037329bab4ddb1cba35807", 719728}, {NULL, 0, NULL, 0} }, Common::DE_DEU, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula Italian version (original packed version) { "drascula", 0, AD_ENTRY1s("packet.001", "0253e924af223f5fe52537023385159b", 32564209), Common::IT_ITA, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula Italian version (ScummVM repacked files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.005", 1, "58caac54b891f5d7f335e710e45e5d29", 16209623}, {NULL, 0, NULL, 0} }, Common::IT_ITA, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula Spanish version (original packed version) { "drascula", 0, AD_ENTRY1s("packet.001", "3c971aba65a037d29d0b479cad6f5943", 31702652), Common::ES_ESP, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula Spanish version (ScummVM repacked files) { "drascula", 0, { {"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563}, {"packet.004", 1, "a289d3cf80d50f25ec569b653248437e", 17205838}, {NULL, 0, NULL, 0} }, Common::ES_ESP, Common::kPlatformDOS, GF_PACKED, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, //// Unpacked versions //////////////////////////////////////////////////// { // Drascula English version { "drascula", 0, AD_ENTRY1s("14.ald", "09b2735953edcd43af115c65ae00b10e", 1595), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula French version { "drascula", 0, AD_ENTRY1s("14.ald", "eeeee96b82169003630e08992248296c", 608), Common::FR_FRA, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula French version (updated - bug #3612236) { "drascula", 0, AD_ENTRY1s("14.ald", "1f9fbded768bee061cc22bc5bdeab540", 611), Common::FR_FRA, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula German version { "drascula", 0, AD_ENTRY1s("14.ald", "72e46089033d56bad1c179ac36e2a9d2", 610), Common::DE_DEU, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula Italian version { "drascula", 0, AD_ENTRY1s("14.ald", "02b49a18328d0bf2efe6ba658c9c7a1d", 2098), Common::IT_ITA, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula Italian version (updated - bug #3612236) { "drascula", 0, AD_ENTRY1s("14.ald", "ccaee939bb3b344c048f28f9205710d1", 2925), Common::IT_ITA, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { // Drascula Spanish version { "drascula", 0, AD_ENTRY1s("14.ald", "0746ed1a5cc8d9728f790c29813f4b43", 23059), Common::ES_ESP, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_LINKSPEECHTOSFX) }, }, { AD_TABLE_END_MARKER } }; static const ExtraGuiOption drasculaExtraGuiOption = { _s("Use original save/load screens"), _s("Use the original save/load screens instead of the ScummVM ones"), "originalsaveload", false }; SaveStateDescriptor loadMetaData(Common::ReadStream *s, int slot, bool setPlayTime); class DrasculaMetaEngine : public AdvancedMetaEngine { public: DrasculaMetaEngine() : AdvancedMetaEngine(Drascula::gameDescriptions, sizeof(Drascula::DrasculaGameDescription), drasculaGames) { _singleId = "drascula"; _guiOptions = GUIO1(GUIO_NOMIDI); } virtual const char *getName() const { return "Drascula"; } virtual const char *getOriginalCopyright() const { return "Drascula Engine (C) 2000 Alcachofa Soft, (C) 1996 Digital Dreams Multimedia, (C) 1994 Emilio de Paz"; } virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const; virtual bool hasFeature(MetaEngineFeature f) const; virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const; virtual SaveStateList listSaves(const char *target) const; virtual int getMaximumSaveSlot() const; virtual void removeSaveState(const char *target, int slot) const; SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; }; bool DrasculaMetaEngine::hasFeature(MetaEngineFeature f) const { return (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup) || (f == kSupportsDeleteSave) || (f == kSavesSupportMetaInfo) || (f == kSavesSupportThumbnail) || (f == kSavesSupportCreationDate) || (f == kSavesSupportPlayTime) || (f == kSimpleSavesNames); } const ExtraGuiOptions DrasculaMetaEngine::getExtraGuiOptions(const Common::String &target) const { ExtraGuiOptions options; options.push_back(drasculaExtraGuiOption); return options; } SaveStateList DrasculaMetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Common::StringArray filenames; Common::String pattern = target; pattern += ".###"; filenames = saveFileMan->listSavefiles(pattern); SaveStateList saveList; int slotNum = 0; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { // Obtain the last 3 digits of the filename, since they correspond to the save slot slotNum = atoi(file->c_str() + file->size() - 3); if (slotNum >= 0 && slotNum <= getMaximumSaveSlot()) { Common::InSaveFile *in = saveFileMan->openForLoading(*file); if (in) { SaveStateDescriptor desc = loadMetaData(in, slotNum, false); if (desc.getSaveSlot() != slotNum) { // invalid delete in; continue; } saveList.push_back(desc); delete in; } } } // Sort saves based on slot number. Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } SaveStateDescriptor DrasculaMetaEngine::querySaveMetaInfos(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(fileName); SaveStateDescriptor desc; // Do not allow save slot 0 (used for auto-saving) to be deleted or // overwritten. desc.setDeletableFlag(slot != 0); desc.setWriteProtectedFlag(slot == 0); if (in) { desc = Drascula::loadMetaData(in, slot, false); if (desc.getSaveSlot() != slot) { delete in; return SaveStateDescriptor(); } Graphics::Surface *const thumbnail = Graphics::loadThumbnail(*in); desc.setThumbnail(thumbnail); delete in; } return desc; } int DrasculaMetaEngine::getMaximumSaveSlot() const { return 999; } void DrasculaMetaEngine::removeSaveState(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); g_system->getSavefileManager()->removeSavefile(fileName); } bool DrasculaMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const { const Drascula::DrasculaGameDescription *gd = (const Drascula::DrasculaGameDescription *)desc; if (gd) { *engine = new Drascula::DrasculaEngine(syst, gd); } return gd != 0; } } // End of namespace Drascula
DrasculaMetaEngine() : AdvancedMetaEngine(Drascula::gameDescriptions, sizeof(Drascula::DrasculaGameDescription), drasculaGames) { _singleId = "drascula"; _guiOptions = GUIO1(GUIO_NOMIDI); }
namespace Fullpipe { static const ADGameDescription gameDescriptions[] = { // Full Pipe Russian version { "fullpipe", 0, AD_ENTRY1s("4620.sc2", "a1a8f3ed731b0dfea43beaa3016fdc71", 554), Common::RU_RUS, Common::kPlatformWindows, ADGF_DROPPLATFORM, GUIO1(GUIO_NONE) }, // Full Pipe German version { "fullpipe", 0, AD_ENTRY1s("4620.sc2", "e4f24ffe4dc84cafc648b951e66c1fb3", 554), Common::DE_DEU, Common::kPlatformWindows, ADGF_DROPPLATFORM, GUIO1(GUIO_NONE) }, // Full Pipe Estonian version { "fullpipe", 0, AD_ENTRY1s("4620.sc2", "571f6b4b68b02003e35bc12c1a1d3fe3", 466), Common::ET_EST, Common::kPlatformWindows, ADGF_DROPPLATFORM, GUIO1(GUIO_NONE) }, // Full Pipe English version { "fullpipe", 0, AD_ENTRY1s("4620.sc2", "bffea807345fece14089768fc141af83", 510), Common::EN_ANY, Common::kPlatformWindows, ADGF_DROPPLATFORM, GUIO1(GUIO_NONE) }, // Full Pipe Russian Demo version { "fullpipe", 0, AD_ENTRY1s("4620.sc2", "a0c71b47fc35a5e163fcd8d0972639bb", 70), Common::RU_RUS, Common::kPlatformWindows, ADGF_DROPPLATFORM | ADGF_DEMO, GUIO1(GUIO_NONE) }, // Full Pipe German Demo version { "fullpipe", 0, AD_ENTRY1s("4620.sc2", "e5e98df537e56b39c33ae1d5c90976fe", 510), Common::DE_DEU, Common::kPlatformWindows, ADGF_DROPPLATFORM | ADGF_DEMO, GUIO1(GUIO_NONE) }, AD_TABLE_END_MARKER }; } // End of namespace Fullpipe
namespace CGE2 { #define GAMEOPTION_COLOR_BLIND_DEFAULT_OFF GUIO_GAMEOPTIONS1 static const PlainGameDescriptor CGE2Games[] = { { "sfinx", "Sfinx" }, { 0, 0 } }; static const ADGameDescription gameDescriptions[] = { { "sfinx", "Freeware", { { "vol.cat", 0, "21197b287d397c53261b6616bf0dd880", 129024 }, { "vol.dat", 0, "de14291869a8eb7c2732ab783c7542ef", 34180844 }, AD_LISTEND }, Common::PL_POL, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "sfinx", "Freeware v1.0", { {"vol.cat", 0, "aa402aed24a72c53a4d1211c456b79dd", 129024}, {"vol.dat", 0, "5966ac26d91d664714349669f9dd09b5", 34180164}, AD_LISTEND }, Common::PL_POL, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "sfinx", "Freeware v1.1", { {"vol.cat", 0, "aa402aed24a72c53a4d1211c456b79dd", 129024}, {"vol.dat", 0, "5966ac26d91d664714349669f9dd09b5", 34180367}, AD_LISTEND }, Common::PL_POL, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "sfinx", "Freeware v0.3", { {"vol.cat", 0, "f158e469dccbebc5a632eb848df89779", 129024}, {"vol.dat", 0, "d40a6b4ae173d6930be54ba56bee15d5", 34183430}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "sfinx", "Freeware v1.0", { {"vol.cat", 0, "f158e469dccbebc5a632eb848df89779", 129024}, {"vol.dat", 0, "d40a6b4ae173d6930be54ba56bee15d5", 34183443}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "sfinx", "Freeware v1.1", { {"vol.cat", 0, "f158e469dccbebc5a632eb848df89779", 129024}, {"vol.dat", 0, "d40a6b4ae173d6930be54ba56bee15d5", 34182773}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, AD_TABLE_END_MARKER }; static const ADExtraGuiOptionsMap optionsList[] = { { GAMEOPTION_COLOR_BLIND_DEFAULT_OFF, { _s("Color Blind Mode"), _s("Enable Color Blind Mode by default"), "enable_color_blind", false } }, AD_EXTRA_GUI_OPTIONS_TERMINATOR }; class CGE2MetaEngine : public AdvancedMetaEngine { public: CGE2MetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(ADGameDescription), CGE2Games, optionsList) { _singleId = "sfinx"; } virtual const char *getName() const { return "CGE2"; } virtual const char *getOriginalCopyright() const { return "Sfinx (C) 1994-1997 Janus B. Wisniewski and L.K. Avalon"; } ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const override; virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const; virtual bool hasFeature(MetaEngineFeature f) const; virtual int getMaximumSaveSlot() const; virtual SaveStateList listSaves(const char *target) const; SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; virtual void removeSaveState(const char *target, int slot) const; }; static ADGameDescription s_fallbackDesc = { "sfinx", "Unknown version", AD_ENTRY1(0, 0), // This should always be AD_ENTRY1(0, 0) in the fallback descriptor Common::UNK_LANG, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }; static const ADFileBasedFallback fileBasedFallback[] = { { &s_fallbackDesc, { "vol.cat", "vol.dat", 0 } }, { 0, { 0 } } }; // This fallback detection looks identical to the one used for CGE. In fact, the difference resides // in the ResourceManager which handles a different archive format. The rest of the detection is identical. ADDetectedGame CGE2MetaEngine::fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { ADDetectedGame game = detectGameFilebased(allFiles, fslist, CGE2::fileBasedFallback); if (!game.desc) return ADDetectedGame(); SearchMan.addDirectory("CGE2MetaEngine::fallbackDetect", fslist.begin()->getParent()); ResourceManager *resman; resman = new ResourceManager(); bool sayFileFound = resman->exist("CGE.SAY"); delete resman; SearchMan.remove("CGE2MetaEngine::fallbackDetect"); if (!sayFileFound) return ADDetectedGame(); return game; } bool CGE2MetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const { if (desc) *engine = new CGE2::CGE2Engine(syst, desc); return desc != 0; } bool CGE2MetaEngine::hasFeature(MetaEngineFeature f) const { return (f == kSupportsDeleteSave) || (f == kSavesSupportMetaInfo) || (f == kSavesSupportThumbnail) || (f == kSavesSupportCreationDate) || (f == kSavesSupportPlayTime) || (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup) || (f == kSimpleSavesNames); } int CGE2MetaEngine::getMaximumSaveSlot() const { return 99; } SaveStateList CGE2MetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Common::StringArray filenames; Common::String pattern = target; pattern += ".###"; filenames = saveFileMan->listSavefiles(pattern); SaveStateList saveList; for (Common::StringArray::const_iterator filename = filenames.begin(); filename != filenames.end(); ++filename) { // Obtain the last 3 digits of the filename, since they correspond to the save slot int slotNum = atoi(filename->c_str() + filename->size() - 3); if (slotNum >= 0 && slotNum <= 99) { Common::InSaveFile *file = saveFileMan->openForLoading(*filename); if (file) { CGE2::SavegameHeader header; // Check to see if it's a ScummVM savegame or not char buffer[kSavegameStrSize + 1]; file->read(buffer, kSavegameStrSize + 1); if (!strncmp(buffer, kSavegameStr, kSavegameStrSize + 1)) { // Valid savegame if (CGE2::CGE2Engine::readSavegameHeader(file, header)) { saveList.push_back(SaveStateDescriptor(slotNum, header.saveName)); } } else { // Must be an original format savegame saveList.push_back(SaveStateDescriptor(slotNum, "Unknown")); } delete file; } } } // Sort saves based on slot number. Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } SaveStateDescriptor CGE2MetaEngine::querySaveMetaInfos(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName); if (f) { CGE2::SavegameHeader header; // Check to see if it's a ScummVM savegame or not char buffer[kSavegameStrSize + 1]; f->read(buffer, kSavegameStrSize + 1); bool hasHeader = !strncmp(buffer, kSavegameStr, kSavegameStrSize + 1) && CGE2::CGE2Engine::readSavegameHeader(f, header, false); delete f; if (!hasHeader) { // Original savegame perhaps? SaveStateDescriptor desc(slot, "Unknown"); return desc; } else { // Create the return descriptor SaveStateDescriptor desc(slot, header.saveName); desc.setThumbnail(header.thumbnail); desc.setSaveDate(header.saveYear, header.saveMonth, header.saveDay); desc.setSaveTime(header.saveHour, header.saveMinutes); if (header.playTime) { desc.setPlayTime(header.playTime * 1000); } // Slot 0 is used for the 'automatic save on exit' save in Soltys, thus // we prevent it from being deleted or overwritten by accident. desc.setDeletableFlag(slot != 0); desc.setWriteProtectedFlag(slot == 0); return desc; } } return SaveStateDescriptor(); } void CGE2MetaEngine::removeSaveState(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); g_system->getSavefileManager()->removeSavefile(fileName); } } // End of namespace CGE2
namespace Neverhood { static const NeverhoodGameDescription gameDescriptions[] = { { // Neverhood English version { "neverhood", 0, AD_ENTRY1s("hd.blb", "22958d968458c9ff221aee38577bb2b2", 4279716), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, { // Neverhood English demo version { "neverhood", "Demo", AD_ENTRY1s("nevdemo.blb", "05b735cfb1086892bec79b54dca5545b", 22564568), Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, { // Neverhood Russian version. Dyadyushka Risech { "neverhood", "DR", AD_ENTRY1s("hd.blb", "787951bf094aad9962291e69a707bdde", 4248635), Common::RU_RUS, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, { // Neverhood Russian version. Fargus { "neverhood", "Fargus", AD_ENTRY1s("hd.blb", "c87c69db423f560d3708e9de78751a7f", 4425816), Common::RU_RUS, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, 0, 0, 0, 0, }, { AD_TABLE_END_MARKER, 0, 0, 0, 0 } }; } // End of namespace Neverhood
CineMetaEngine() : AdvancedMetaEngine(Cine::gameDescriptions, sizeof(Cine::CINEGameDescription), cineGames) { _singleid = "cine"; _guioptions = GUIO1(GUIO_NOSPEECH); }
namespace Toltecs { static const ToltecsGameDescription gameDescriptions[] = { { // 3 Skulls of the Toltecs English version { "toltecs", 0, AD_ENTRY1s("WESTERN", "05472037e9cfde146e953c434e74f0f4", 337643527), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs English version (alternate) // From bug #3614933 { "toltecs", 0, AD_ENTRY1s("WESTERN", "a9c9cfef9d05b8f7a5573b626fa4ea87", 337643527), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs PIRATE CD-RIP version (no audio) // == DO NOT RE-ADD == { "toltecs", 0, AD_ENTRY1s("WESTERN", "56d0da91ec3db8ac869594357584e851", 104804435), Common::EN_ANY, Common::kPlatformDOS, ADGF_PIRATED, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs Russian version { "toltecs", 0, AD_ENTRY1s("WESTERN", "ba1742d3193b68ceb9434e2ab7a09a9b", 391462783), Common::RU_RUS, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs German version { "toltecs", 0, AD_ENTRY1s("WESTERN", "1a3292bad8e0bb5701800c73531dd75e", 345176617), Common::DE_DEU, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs French version { "toltecs", 0, AD_ENTRY1s("WESTERN", "4fb845635cbdac732453fe23be350df9", 327269545), Common::FR_FRA, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs Spanish version { "toltecs", 0, AD_ENTRY1s("WESTERN", "479f468beccc1b0ce5873ec523d1380e", 308391018), Common::ES_ESP, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs Hungarian version // From bug #3440641 { "toltecs", 0, AD_ENTRY1s("WESTERN", "69a5572e75409d8c6230b787faa353af", 337647960), Common::HU_HUN, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs English Demo version { "toltecs", 0, AD_ENTRY1s("WESTERN", "53a0abd1c0bc5cad8ba18f0e56877705", 46241833), Common::EN_ANY, Common::kPlatformDOS, ADGF_DEMO, GUIO1(GUIO_NONE) }, }, { // 3 Skulls of the Toltecs German Demo version { "toltecs", 0, AD_ENTRY1s("WESTERN", "1c85e82712d24f1d5c1ea2a66ddd75c2", 47730038), Common::DE_DEU, Common::kPlatformDOS, ADGF_DEMO, GUIO1(GUIO_NONE) }, }, { AD_TABLE_END_MARKER } }; } // End of namespace Toltecs
_s("Use the floppy version's intro (CD version only)"), "alt_intro", false }; struct SkyVersion { int dinnerTableEntries; int dataDiskSize; const char *extraDesc; int version; const char *guioptions; }; // TODO: Would be nice if Disk::determineGameVersion() used this table, too. static const SkyVersion skyVersions[] = { { 232, -1, "floppy demo", 272, GUIO1(GUIO_NOSPEECH) }, // German { 243, -1, "pc gamer demo", 109, GUIO1(GUIO_NOSPEECH) }, { 247, -1, "floppy demo", 267, GUIO1(GUIO_NOSPEECH) }, // English { 1404, -1, "floppy", 288, GUIO1(GUIO_NOSPEECH) }, { 1413, -1, "floppy", 303, GUIO1(GUIO_NOSPEECH) }, { 1445, 8830435, "floppy", 348, GUIO1(GUIO_NOSPEECH) }, { 1445, -1, "floppy", 331, GUIO1(GUIO_NOSPEECH) }, { 1711, -1, "cd demo", 365, GUIO0() }, { 5099, -1, "cd", 368, GUIO0() }, { 5097, -1, "cd", 372, GUIO0() }, { 0, 0, 0, 0, 0 } }; class SkyMetaEngine : public MetaEngine { public: const char *getEngineID() const {
namespace Buried { static const BuriedGameDescription gameDescriptions[] = { // English Windows 3.11 8BPP // Installed // v1.01 { { "buried", "v1.01 8BPP", { { "BIT816.EXE", 0, "57a14461c77d9c77534bd418043db1ec", 1163776 }, { "BIT8LIB.DLL", 0, "31bcd9e5cc32df00b09ce626e6d9106e", 2420480 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO0() }, }, // English Windows 3.11 24BPP // Installed // v1.01 { { "buried", "v1.01 24BPP", { { "BIT2416.EXE", 0, "dcbfb3f2916ad902043942fc00d2017f", 1159680 }, { "BIT24LIB.DLL", 0, "74ac9dae92f415fea8cdbd220ba8795c", 5211648 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, GF_TRUECOLOR, GUIO0() }, }, // Japanese Windows 3.11 8BPP // Installed // v1.051 { { "buried", "v1.051 8BPP", { { "BIT816.EXE", 0, "decbf9a7d91803525137ffd980d16708", 1163264 }, { "BIT8LIB.DLL", 0, "f5ccde0efccb95afe902627a35262568", 2418816 }, { 0, 0, 0, 0 }, }, Common::JA_JPN, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO0() }, }, // Japanese Windows 3.11 24BPP // Installed // v1.051 { { "buried", "v1.051 24BPP", { { "BIT2416.EXE", 0, "9435b9a40e3ac83e6fa1e83caaf57792", 1157632 }, { "BIT24LIB.DLL", 0, "4d55802259d9648b9aa396461bfd53a3", 6576896 }, { 0, 0, 0, 0 }, }, Common::JA_JPN, Common::kPlatformWindows, GF_TRUECOLOR, GUIO0() }, }, // English Windows 3.11 8BPP // Not Installed // v1.01 { { "buried", "v1.01 8BPP", { { "BIT816.EX_", 0, "166b44e53350c19bb25ef93d2c2b8f79", 364490 }, { "BIT8LIB.DL_", 0, "8a345993f60f6bed7c17fa9e7f2bc37d", 908854 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, GF_COMPRESSED, GUIO0() }, }, // English Windows 3.11 24BPP // Not Installed // v1.01 { { "buried", "v1.01 24BPP", { { "BIT2416.EX_", 0, "a9ac76610ba614b59235a7d5e00e4a62", 361816 }, { "BIT24LIB.DL_", 0, "00e6eedbcef824988fbb01a87ca8f7fd", 2269314 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, GF_COMPRESSED | GF_TRUECOLOR, GUIO0() }, }, // German Windows 3.11 8BPP // Installed // v1.05 { { "buried", "v1.05 8BPP", { { "BIT816.EXE", 0, "a039e9f1c569acc1cf80f6b549ce1e37", 1178112 }, { "BIT8LIB.DLL", 0, "6b22f0b47efb29e45e9b2a336185d924", 2420608 }, { 0, 0, 0, 0 }, }, Common::DE_DEU, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO0() }, }, // German Windows 3.11 24BPP // Installed // v1.05 { { "buried", "v1.05 24BPP", { { "BIT2416.EXE", 0, "fbfd453cced2b14069fa32e3c8dd69e2", 1172480 }, { "BIT24LIB.DLL", 0, "30e56210d3150b5fa41c9bd2c90754fe", 6581376 }, { 0, 0, 0, 0 }, }, Common::DE_DEU, Common::kPlatformWindows, GF_TRUECOLOR, GUIO0() }, }, // French Windows 3.11 8BPP // Installed // v1.05 { { "buried", "v1.05 8BPP", { { "BIT816.EXE", 0, "edea5331dc7cb0f3da7322691e12a18a", 1182720 }, { "BIT8LIB.DLL", 0, "6b22f0b47efb29e45e9b2a336185d924", 2420608 }, { 0, 0, 0, 0 }, }, Common::FR_FRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO0() }, }, // French Windows 3.11 24BPP // Installed // v1.05 { { "buried", "v1.05 24BPP", { { "BIT2416.EXE", 0, "0adea8e1ad6fddad3b861be8a7bab340", 1177088 }, { "BIT24LIB.DLL", 0, "30e56210d3150b5fa41c9bd2c90754fe", 6581376 }, { 0, 0, 0, 0 }, }, Common::FR_FRA, Common::kPlatformWindows, GF_TRUECOLOR, GUIO0() }, }, // Italian Windows 3.11 8BPP // Installed // v1.05 { { "buried", "v1.05 8BPP", { { "BIT816.EXE", 0, "fb3e5c9198503bbb45b79150b511af5e", 1175040 }, { "BIT8LIB.DLL", 0, "6b22f0b47efb29e45e9b2a336185d924", 2420608 }, { 0, 0, 0, 0 }, }, Common::IT_ITA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO0() }, }, // Italian Windows 3.11 24BPP // Installed // v1.05 { { "buried", "v1.05 24BPP", { { "BIT2416.EXE", 0, "56bdd481b063c91b95c21f02faa450bb", 1169408 }, { "BIT24LIB.DLL", 0, "30e56210d3150b5fa41c9bd2c90754fe", 6581376 }, { 0, 0, 0, 0 }, }, Common::IT_ITA, Common::kPlatformWindows, GF_TRUECOLOR, GUIO0() }, }, // Spanish Windows 3.11 8BPP // Installed // v1.05 { { "buried", "v1.05 8BPP", { { "BIT816.EXE", 0, "f08c96347fcb83d92ae57de1fb578234", 1174528 }, { "BIT8LIB.DLL", 0, "a80afdc20264e764e831ef5099cde623", 2420992 }, { 0, 0, 0, 0 }, }, Common::ES_ESP, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO0() }, }, // Spanish Windows 3.11 24BPP // Installed // v1.05 { { "buried", "v1.05 24BPP", { { "BIT2416.EXE", 0, "d409b59f124babc9b423793e762b7e03", 1168896 }, { "BIT24LIB.DLL", 0, "c864bcd69d05532e0066b8db173a939b", 6582784 }, { 0, 0, 0, 0 }, }, Common::ES_ESP, Common::kPlatformWindows, GF_TRUECOLOR, GUIO0() }, }, // English Windows 95 8BPP // v1.1 { { "buried", "v1.1 8BPP", { { "BIT832.EXE", 0, "f4f8007f49197ba40ea633eb113c0b6d", 1262592 }, { "BIT8L32.DLL", 0, "addfef0420e1f41a7766ecc6baa58553", 2424832 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, GF_WIN95, GUIO0() }, }, // English Windows 95 24BPP // v1.1 { { "buried", "v1.1 24BPP", { { "BIT2432.EXE", 0, "4086a8200938eac3e72d238a84f65618", 1257472 }, { "BIT24L32.DLL", 0, "198bfd476d5228c4a7a63c029cffadfc", 5216256 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, GF_TRUECOLOR | GF_WIN95, GUIO0() }, }, // English Windows Demo 8BPP { { "buried", "Demo 8BPP", AD_ENTRY1("BIT816.EXE", "a5bca831dac0903a304c29c320f881c5"), Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO1(GUIO_NOLAUNCHLOAD) }, }, // English Windows Demo 24BPP { { "buried", "Demo 24BPP", AD_ENTRY1("BIT2416.EXE", "9857e2d2b7a63b1304058dabc5098249"), Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO | GF_TRUECOLOR, GUIO1(GUIO_NOLAUNCHLOAD) }, }, // English Windows 3.11 Trial 8BPP // v1.1 { { "buried", "Trial 8BPP", { { "BTV816.EXE", 0, "a3551483329816d8ddc8fa877113762c", 1170432 }, { "BIT8LIB.DLL", 0, "6b22f0b47efb29e45e9b2a336185d924", 2420608 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO | GF_TRIAL, GUIO0() }, }, // English Windows 3.11 Trial 24BPP // v1.1 { { "buried", "Trial 24BPP", { { "BTV2416.EXE", 0, "e0783c5eda09176d414d3df4ada8fe89", 1164288 }, { "BIT24LIB.DLL", 0, "74ac9dae92f415fea8cdbd220ba8795c", 5211648 }, { 0, 0, 0, 0 }, }, Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO | GF_TRUECOLOR | GF_TRIAL, GUIO0() }, }, { AD_TABLE_END_MARKER } }; static const char *directoryGlobs[] = { "win31", "manual", 0 }; } // End of namespace Buried
namespace Made { static const MadeGameDescription gameDescriptions[] = { { // NOTE: Return to Zork entries with *.dat are used to detect the game via rtzcd.dat, // which is packed inside rtzcd.red. Entries with *.red refer to the packed file // directly, which is the "official" way. // Return to Zork - English CD version 1.0 9/15/93 (installed) // Patch #1953654 submitted by spookypeanut { "rtz", "V1.0, 9/15/93, installed, CD", AD_ENTRY1("rtzcd.dat", "e95c38ded389e39cfbf87a8cb250b12e"), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - English CD version 1.0 9/15/93 // Patch #1953654 submitted by spookypeanut { "rtz", "V1.0, 9/15/93, CD", AD_ENTRY1("rtzcd.red", "cd8b62ece4677c438688c1de3f5379b9"), Common::EN_ANY, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD_COMPRESSED, 3, }, { // Return to Zork - English CD version 1.1 12/7/93 (installed) { "rtz", "V1.1, 12/7/93, installed, CD", AD_ENTRY1s("rtzcd.dat", "a1db8c97a78dae10f91d356f16ad07b8", 536064), Common::EN_ANY, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - English CD version 1.1 12/7/93 { "rtz", "V1.1, 12/7/93, CD", AD_ENTRY1s("rtzcd.red", "c4e2430e6b6c6ff1562a80fb4a9df24c", 276177), Common::EN_ANY, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD_COMPRESSED, 3, }, { // Return to Zork - English CD version 1.2 9/29/94 (installed) // Supplied by Dark-Star in the ScummVM forums { "rtz", "V1.2, 9/29/94, installed, CD", AD_ENTRY1("rtzcd.dat", "9d740378da2d16e83d0d0efff01bf83a"), Common::EN_ANY, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - English CD version 1.2 9/29/94 { "rtz", "V1.2, 9/29/94, CD", AD_ENTRY1s("rtzcd.red", "946997d8b0aa6cb4e848bad02a1fc3d2", 276584), Common::EN_ANY, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD_COMPRESSED, 3, }, { // Return to Zork - German CD version 1.2 9/29/94 (installed) // Supplied by Dark-Star in the ScummVM forums { "rtz", "V1.2, 9/29/94, installed, CD", AD_ENTRY1s("rtzcd.dat", "9d740378da2d16e83d0d0efff01bf83a", 525824), Common::DE_DEU, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - German CD version 1.2 4/18/95 // Supplied by Dark-Star in the ScummVM forums { "rtz", "V1.2, 4/18/95, CD", AD_ENTRY1s("rtzcd.red", "946997d8b0aa6cb4e848bad02a1fc3d2", 355442), Common::DE_DEU, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD_COMPRESSED, 3, }, { // Return to Zork - Italian CD version 1.2 3/31/95 (installed) // Patch #2685032 submitted by goodoldgeorg { "rtz", "V1.2, 3/31/95, installed, CD", AD_ENTRY1s("rtzcd.dat", "5b86035aed0277f96e3d173542b5364a", 523776), Common::IT_ITA, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - Italian CD version 1.2 3/31/95 // Patch #2685032 submitted by goodoldgeorg { "rtz", "V1.2, 3/31/95, CD", AD_ENTRY1s("rtzcd.red", "946997d8b0aa6cb4e848bad02a1fc3d2", 354971), Common::IT_ITA, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD_COMPRESSED, 3, }, { // Return to Zork - French CD version 1.2 5/13/95 (installed) // Patch #2685032 submitted by goodoldgeorg { "rtz", "V1.2, 5/13/95, installed, CD", AD_ENTRY1s("rtzcd.dat", "bde8251a8e34e87c54e3f93147d56c9e", 523776), Common::FR_FRA, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - French CD version 1.2 5/13/95 // Patch #2685032 submitted by goodoldgeorg { "rtz", "V1.2, 3/31/95, CD", AD_ENTRY1s("rtzcd.red", "946997d8b0aa6cb4e848bad02a1fc3d2", 354614), Common::FR_FRA, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD_COMPRESSED, 3, }, { // Return to Zork - English floppy version { "rtz", "Floppy", AD_ENTRY1("rtz.prj", "764d02f52ce1c219f2c0066677fba4ce"), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, GID_RTZ, 0, GF_FLOPPY, 3, }, { // Return to Zork - Demo { "rtz", "Demo", AD_ENTRY1("demo.dat", "2a6a1354bd5346fad4aee08e5b56caaa"), Common::EN_ANY, Common::kPlatformDOS, ADGF_DEMO, GUIO0() }, GID_RTZ, 0, GF_DEMO, 3, }, { // Return to Zork - Japanese DOS // This is the RTZCD.DAT in the base directory of the FM-Towns CD { "rtz", "", AD_ENTRY1("rtzcd.dat", "c4fccf67ad247f09b94c3c808b138576"), Common::JA_JPN, Common::kPlatformDOS, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - Japanese FM-Towns // This is in the RTZFM folder of the FM-Towns CD { "rtz", "", AD_ENTRY1("rtzcd.dat", "e949a6a42d82daabfa7d4dc0a87a9843"), Common::JA_JPN, Common::kPlatformFMTowns, ADGF_CD, GUIO1(GUIO_NOASPECT) }, GID_RTZ, 0, GF_CD, 3, }, { // Return to Zork - Japanese PC-98 // This is in the RTZ9821 folder of the FM-Towns CD { "rtz", "", AD_ENTRY1("rtzcd.dat", "0c0117e98530c736a141c2aad6834dc5"), Common::JA_JPN, Common::kPlatformPC98, ADGF_CD, GUIO0() }, GID_RTZ, 0, GF_CD, 3, }, { // The Manhole: New and Enhanced { "manhole", "", AD_ENTRY1("manhole.dat", "cb21e31ed35c963208343bc995225b73"), Common::EN_ANY, Common::kPlatformDOS, ADGF_CD, GUIO1(GUIO_NOSPEECH) }, GID_MANHOLE, 0, GF_CD, 2, }, { // The Manhole (EGA, 5.25") { "manhole", "EGA", AD_ENTRY1("manhole.dat", "2b1658292599a861c4cd3cf6cdb3c581"), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, GID_MANHOLE, 0, GF_FLOPPY, 1, }, { // Leather Goddesses of Phobos 2 (English) { "lgop2", "", AD_ENTRY1("lgop2.dat", "8137996db200ff67e8f172ff106f2e48"), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, GF_FLOPPY, 2, }, { // Leather Goddesses of Phobos 2 (German) // Supplied by windlepoons (bug tracker #2675695) { "lgop2", "", AD_ENTRY1s("lgop2.dat", "a0ffea6a3b7e39bd861edd00c397641c", 299466), Common::DE_DEU, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, GF_FLOPPY, 2, }, { // Leather Goddesses of Phobos 2 (French) // Supplied by goodoldgeorg (bug tracker #2675759) { "lgop2", "", AD_ENTRY1s("lgop2.dat", "f9e974087af7cf4b7ec2d8dc45d01e0c", 295366), Common::FR_FRA, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, GF_FLOPPY, 2, }, { // Leather Goddesses of Phobos 2 (Spanish) // Supplied by goodoldgeorg (bug tracker #2675759) { "lgop2", "", AD_ENTRY1s("lgop2.dat", "96eb95b4d75b9a3da0b0d67e3b4a787d", 288984), Common::ES_ESP, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, GF_FLOPPY, 2, }, { // Rodney's Funscreen { "rodney", "", AD_ENTRY1("rodneys.dat", "a79887dbaa47689facd7c6f09258ba5a"), Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, GID_RODNEY, 0, GF_FLOPPY, 2, }, { AD_TABLE_END_MARKER, 0, 0, 0, 0 } }; /** * The fallback game descriptor used by the Made engine's fallbackDetector. * Contents of this struct are to be overwritten by the fallbackDetector. */ static MadeGameDescription g_fallbackDesc = { { "", "", AD_ENTRY1(0, 0), // This should always be AD_ENTRY1(0, 0) in the fallback descriptor Common::UNK_LANG, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO0() }, 0, 0, 0, 0, }; } // End of namespace Made
namespace CGE { #define GAMEOPTION_COLOR_BLIND_DEFAULT_OFF GUIO_GAMEOPTIONS1 static const PlainGameDescriptor CGEGames[] = { { "soltys", "Soltys" }, { 0, 0 } }; static const ADGameDescription gameDescriptions[] = { { "soltys", "Freeware", { {"vol.cat", 0, "0c33e2c304821a2444d297fc5e2d67c6", 50176}, {"vol.dat", 0, "f9ae2e7f8f7cac91378cdafca43faf1e", 8437676}, AD_LISTEND }, Common::PL_POL, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "soltys", "Demo (not supported)", { {"vol.cat", 0, "1e077c8ff58109a187f07ac54b0c873a", 18788}, {"vol.dat", 0, "75d385a6074c58b69f7730481f256051", 1796710}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformDOS, ADGF_DEMO , GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "soltys", "Demo (not supported)", { {"vol.cat", 0, "f17987487fab1ebddd781d8d02fedecc", 7168}, {"vol.dat", 0, "c5d9b15863cab61dc125551576dece04", 1075272}, AD_LISTEND }, Common::PL_POL, Common::kPlatformDOS, ADGF_DEMO , GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "soltys", "Freeware v1.0", { {"vol.cat", 0, "f1675684c68ab90272f5776f8f2c3974", 50176}, {"vol.dat", 0, "4ffeff4abc99ac5999b55ccfc56ab1df", 8430868}, AD_LISTEND }, Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS , GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "soltys", "Freeware v1.0", { {"vol.cat", 0, "20fdce799adb618100ef9ee2362be875", 50176}, {"vol.dat", 0, "0e43331c846094d77f5dd201827e0a3b", 8439339}, AD_LISTEND }, Common::PL_POL, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, { "soltys", "Freeware v1.0", { {"vol.cat", 0, "fcae86b20eaa5cedec17b24fa5e85eb4", 50176}, {"vol.dat", 0, "ff10d54acc2c95696c57e05819b6906f", 8450151}, AD_LISTEND }, Common::ES_ESP, Common::kPlatformDOS, ADGF_NO_FLAGS , GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }, AD_TABLE_END_MARKER }; static const ADExtraGuiOptionsMap optionsList[] = { { GAMEOPTION_COLOR_BLIND_DEFAULT_OFF, { _s("Color Blind Mode"), _s("Enable Color Blind Mode by default"), "enable_color_blind", false } }, AD_EXTRA_GUI_OPTIONS_TERMINATOR }; class CGEMetaEngine : public AdvancedMetaEngine { public: CGEMetaEngine() : AdvancedMetaEngine(CGE::gameDescriptions, sizeof(ADGameDescription), CGEGames, optionsList) { _singleId = "soltys"; } virtual const char *getName() const { return "CGE"; } virtual const char *getOriginalCopyright() const { return "Soltys (C) 1994-1996 L.K. Avalon"; } ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const override; virtual bool hasFeature(MetaEngineFeature f) const; virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const; virtual int getMaximumSaveSlot() const; virtual SaveStateList listSaves(const char *target) const; SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; virtual void removeSaveState(const char *target, int slot) const; }; static ADGameDescription s_fallbackDesc = { "soltys", "Unknown version", AD_ENTRY1(0, 0), // This should always be AD_ENTRY1(0, 0) in the fallback descriptor Common::UNK_LANG, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_COLOR_BLIND_DEFAULT_OFF) }; static const ADFileBasedFallback fileBasedFallback[] = { { &s_fallbackDesc, { "vol.cat", "vol.dat", 0 } }, { 0, { 0 } } }; ADDetectedGame CGEMetaEngine::fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { ADDetectedGame game = detectGameFilebased(allFiles, fslist, CGE::fileBasedFallback); if (!game.desc) return ADDetectedGame(); SearchMan.addDirectory("CGEMetaEngine::fallbackDetect", fslist.begin()->getParent()); ResourceManager *resman; resman = new ResourceManager(); bool sayFileFound = resman->exist("CGE.SAY"); delete resman; SearchMan.remove("CGEMetaEngine::fallbackDetect"); if (!sayFileFound) return ADDetectedGame(); return game; } bool CGEMetaEngine::hasFeature(MetaEngineFeature f) const { return (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup) || (f == kSupportsDeleteSave) || (f == kSavesSupportMetaInfo) || (f == kSavesSupportThumbnail) || (f == kSavesSupportCreationDate) || (f == kSavesSupportPlayTime) || (f == kSimpleSavesNames); } void CGEMetaEngine::removeSaveState(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); g_system->getSavefileManager()->removeSavefile(fileName); } int CGEMetaEngine::getMaximumSaveSlot() const { return 99; } SaveStateList CGEMetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Common::StringArray filenames; Common::String pattern = target; pattern += ".###"; filenames = saveFileMan->listSavefiles(pattern); SaveStateList saveList; for (Common::StringArray::const_iterator filename = filenames.begin(); filename != filenames.end(); ++filename) { // Obtain the last 3 digits of the filename, since they correspond to the save slot int slotNum = atoi(filename->c_str() + filename->size() - 3); if (slotNum >= 0 && slotNum <= 99) { Common::InSaveFile *file = saveFileMan->openForLoading(*filename); if (file) { CGE::SavegameHeader header; // Check to see if it's a ScummVM savegame or not char buffer[kSavegameStrSize + 1]; file->read(buffer, kSavegameStrSize + 1); if (!strncmp(buffer, CGE::savegameStr, kSavegameStrSize + 1)) { // Valid savegame if (CGE::CGEEngine::readSavegameHeader(file, header)) { saveList.push_back(SaveStateDescriptor(slotNum, header.saveName)); } } else { // Must be an original format savegame saveList.push_back(SaveStateDescriptor(slotNum, "Unknown")); } delete file; } } } // Sort saves based on slot number. Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } SaveStateDescriptor CGEMetaEngine::querySaveMetaInfos(const char *target, int slot) const { Common::String fileName = Common::String::format("%s.%03d", target, slot); Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading(fileName); if (f) { CGE::SavegameHeader header; // Check to see if it's a ScummVM savegame or not char buffer[kSavegameStrSize + 1]; f->read(buffer, kSavegameStrSize + 1); bool hasHeader = !strncmp(buffer, CGE::savegameStr, kSavegameStrSize + 1) && CGE::CGEEngine::readSavegameHeader(f, header, false); delete f; if (!hasHeader) { // Original savegame perhaps? SaveStateDescriptor desc(slot, "Unknown"); return desc; } else { // Create the return descriptor SaveStateDescriptor desc(slot, header.saveName); desc.setThumbnail(header.thumbnail); desc.setSaveDate(header.saveYear, header.saveMonth, header.saveDay); desc.setSaveTime(header.saveHour, header.saveMinutes); if (header.playTime) { desc.setPlayTime(header.playTime * 1000); } // Slot 0 is used for the 'automatic save on exit' save in Soltys, thus // we prevent it from being deleted or overwritten by accident. desc.setDeletableFlag(slot != 0); desc.setWriteProtectedFlag(slot == 0); return desc; } } return SaveStateDescriptor(); } bool CGEMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const { if (desc) { *engine = new CGE::CGEEngine(syst, desc); } return desc != 0; } } // End of namespace CGE
{"off.res", 0, NULL, -1}, {"on.res", 0, NULL, -1}, {"ons.res", 0, NULL, -1}, {"varia.res", 0, NULL, -1}, {"lan_000.res", 0, NULL, -1}, {"lan_500.res", 0, NULL, -1}, {"mmm.res", 0, NULL, -1}, {"sam_mmm.res", 0, NULL, -1}, {"sam_sam.res", 0, NULL, -1}, //{"unlogic.res", 0, NULL, -1}, //skipped if not present {NULL, 0, NULL, 0} }, Common::EN_ANY, Common::kPlatformDOS, ADGF_NO_FLAGS, GUIO1(GUIO_NOSPEECH) }, { "teenagent", "", { {"off.res", 0, NULL, -1}, {"on.res", 0, NULL, -1}, {"ons.res", 0, NULL, -1}, {"varia.res", 0, NULL, -1}, {"lan_000.res", 0, NULL, -1}, {"lan_500.res", 0, NULL, -1}, {"sam_sam.res", 0, NULL, -1}, {"voices.res", 0, NULL, -1}, {"cdlogo.res", 0, NULL, -1}, {NULL, 0, NULL, 0}
namespace Grim { struct GrimGameDescription { ADGameDescription desc; GrimGameType gameType; }; static const PlainGameDescriptor grimGames[] = { {"grim", "Grim Fandango"}, {"monkey4", "Escape From Monkey Island"}, {0, 0} }; #define GAMEOPTION_LOAD_DATAUSR GUIO_GAMEOPTIONS1 static const ADExtraGuiOptionsMap gameGuiOptions[] = { { GAMEOPTION_LOAD_DATAUSR, { "Load user patch (unsupported)", "Load an user patch. Please note that the ResidualVM-team doesn't provide support for using such patches.", "datausr_load", false } }, AD_EXTRA_GUI_OPTIONS_TERMINATOR }; static const GrimGameDescription gameDescriptions[] = { { // Grim Fandango English version (patched) { "grim", "", AD_ENTRY1s("VOX0001.LAB", "444f05f2af689c1bffd179b8b6a632bd", 57993159), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango English version (unpatched) { "grim", "", AD_ENTRY1s("VOX0001.LAB", "8b12ed530195c6c577436df27df62ecb", 58011176), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango French version (un/patched ???) { "grim", "", AD_ENTRY1s("VOX0001.LAB", "19bc0dc9554257b1f021463de54f359f", 56268691), Common::FR_FRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango Portuguese version { "grim", "", AD_ENTRY1s("VOX0001.LAB", "89da4d4f4f90a8ea390450ed5a617f08", 57875710), Common::PT_BRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango Italian version { "grim", "", AD_ENTRY1s("VOX0001.LAB", "9e7075f3fb0427ae8136b290538d07dd", 62185775), Common::IT_ITA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango Spanish version (patched) { "grim", "", AD_ENTRY1s("VOX0001.LAB", "85d3e9504c481c5ccf2119ea6e0f4e2f", 53831340), Common::ES_ESP, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango German version { "grim", "", AD_ENTRY1s("VOX0001.LAB", "d304aa402098de5966816c0a11e45816", 66829347), Common::DE_DEU, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, /* { // Grim Fandango German version (patched) { "grim", "", AD_ENTRY1s("grim.tab", "464138caf47e580cbb237dee10674b16", 398671), Common::DE_DEU, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango Spanish version { "grim", "", AD_ENTRY1s("grim.tab", "b1460cd029f13718f7f62c2403e047ec", 372709), Common::ES_ESP, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango Spanish version (patched) { "grim", "", AD_ENTRY1s("grim.tab", "b1460cd029f13718f7f62c2403e047ec", 372020), Common::ES_ESP, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango Italian version (patched) { "grim", "", AD_ENTRY1s("grim.tab", "2d99c796b7a4e5c421cae49dc29dab6c", 369242), Common::IT_ITA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango French version (patched) { "grim", "", AD_ENTRY1s("grim.tab", "3bd00ca87214862c012ac99e1758dd83", 386292), Common::FR_FRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, { // Grim Fandango Portuguese version (patched) { "grim", "", AD_ENTRY1s("grim.tab", "4dc16be476bb6036b423bc331ca8281a", 362994), Common::PT_BRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, */ { // Grim Fandango English demo version { "grim", "Demo", AD_ENTRY1s("gfdemo01.lab", "755cdac083f7f751bec7506402278f1a", 29489930), Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO1(GAMEOPTION_LOAD_DATAUSR) }, GType_GRIM }, #ifdef ENABLE_MONKEY4 { // Escape from Monkey Island English { "monkey4", "", AD_ENTRY1s("artAll.m4b", "61959da91d864bf5f4588daa4a5a3019", 18515664), Common::EN_ANY, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island German { "monkey4", "", AD_ENTRY1s("artAll.m4b", "007a33881478be6b6e0228d8888536ae", 18512568), Common::DE_DEU, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island Italian { "monkey4", "", AD_ENTRY1s("artAll.m4b", "d2f010c1cd1fd002eea403282a6b9a1e", 18513451), Common::IT_ITA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island Spanish { "monkey4", "", AD_ENTRY1s("artAll.m4b", "0d459954031c086a0448d2eb3fa068a1", 18514404), Common::ES_ESP, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island French { "monkey4", "", AD_ENTRY1s("artAll.m4b", "151af0a694382af873f325fcea293bb1", 18514420), Common::FR_FRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island Portuguese { "monkey4", "", AD_ENTRY1s("artAll.m4b", "030e7637aee7886a3caad60cf102f797", 18515747), Common::PT_BRA, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island Russian { "monkey4", "", AD_ENTRY1s("artAll.m4b", "779561a70a11dd5686974f122fc1516c", 18500052), Common::RU_RUS, Common::kPlatformWindows, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island English PS2 { "monkey4", "", AD_ENTRY1s("artAll.m4b", "0dc9a4df0d8553f277d8dc8e23b6249d", 34593974), Common::EN_ANY, Common::kPlatformPS2, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island German PS2 { "monkey4", "", AD_ENTRY1s("artAll.m4b", "5b5c7a3964c168eab44b82981db357d8", 34642186), Common::DE_DEU, Common::kPlatformPS2, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island Italian PS2 { "monkey4", "", AD_ENTRY1s("artAll.m4b", "2de68c8fd955c1a3c50202b072bde0cb", 34642651), Common::IT_ITA, Common::kPlatformPS2, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island Spanish PS2 { "monkey4", "", AD_ENTRY1s("artAll.m4b", "ff6689dcca36c249ec834a3019aeb397", 34642656), Common::ES_ESP, Common::kPlatformPS2, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island French PS2 { "monkey4", "", AD_ENTRY1s("artAll.m4b", "5ce964a19a8672944b9b62170e45ce28", 34593681), Common::FR_FRA, Common::kPlatformPS2, ADGF_NO_FLAGS, GUIO_NONE }, GType_MONKEY4 }, { // Escape from Monkey Island demo { "monkey4", "Demo", AD_ENTRY1s("magdemo.lab", "9e7eaa1b9317ff47d5deeda0b2c42ce3", 19826116), Common::EN_ANY, Common::kPlatformWindows, ADGF_DEMO, GUIO_NONE }, GType_MONKEY4 }, #endif // ENABLE_MONKEY4 { AD_TABLE_END_MARKER, GType_GRIM } }; static const Engines::ObsoleteGameID obsoleteGameIDsTable[] = { {"grimdemo", "grim", Common::kPlatformWindows}, {0, 0, Common::kPlatformUnknown} }; class GrimMetaEngine : public AdvancedMetaEngine { public: GrimMetaEngine() : AdvancedMetaEngine(Grim::gameDescriptions, sizeof(Grim::GrimGameDescription), grimGames, gameGuiOptions) { _singleid = "grim"; _guioptions = GUIO_NOMIDI; } virtual GameDescriptor findGame(const char *gameid) const { return Engines::findGameID(gameid, _gameids, obsoleteGameIDsTable); } virtual const char *getName() const { return "Grim Engine"; } virtual const char *getOriginalCopyright() const { return "LucasArts GrimE Games (C) LucasArts"; } virtual Common::Error createInstance(OSystem *syst, Engine **engine) const { Engines::upgradeTargetIfNecessary(obsoleteGameIDsTable); return AdvancedMetaEngine::createInstance(syst, engine); } virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const; virtual bool hasFeature(MetaEngineFeature f) const; virtual SaveStateList listSaves(const char *target) const; }; bool GrimMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const { const GrimGameDescription *gd = (const GrimGameDescription *)desc; if (gd) *engine = new GrimEngine(syst, gd->desc.flags, gd->gameType, gd->desc.platform, gd->desc.language); return gd != 0; } bool GrimMetaEngine::hasFeature(MetaEngineFeature f) const { return (f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup); } static bool cmpSave(const SaveStateDescriptor &x, const SaveStateDescriptor &y) { return x.getSaveSlot() < y.getSaveSlot(); } SaveStateList GrimMetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Common::StringArray filenames; Common::String pattern = "grim*.gsv"; filenames = saveFileMan->listSavefiles(pattern); SaveStateList saveList; char str[256]; int32 strSize; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { // Obtain the last digits of the filename, since they correspond to the save slot int slotNum = atoi(file->c_str() + 4); if (slotNum >= 0) { SaveGame *savedState = SaveGame::openForLoading(*file); if (savedState && savedState->isCompatible()) { savedState->beginSection('SUBS'); strSize = savedState->readLESint32(); savedState->read(str, strSize); savedState->endSection(); saveList.push_back(SaveStateDescriptor(slotNum, str)); } delete savedState; } } Common::sort(saveList.begin(), saveList.end(), cmpSave); return saveList; } } // End of namespace Grim
GobMetaEngine::GobMetaEngine() : AdvancedMetaEngine(Gob::gameDescriptions, sizeof(Gob::GOBGameDescription), gobGames) { _singleid = "gob"; _guioptions = GUIO1(GUIO_NOLAUNCHLOAD); }
#include "testbed/testbed.h" static const PlainGameDescriptor testbed_setting[] = { { "testbed", "Testbed: The Backend Testing Framework" }, { 0, 0 } }; static const ADGameDescription testbedDescriptions[] = { { "testbed", "", AD_ENTRY1("TESTBED", 0), // Game-data file for detection Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, AD_TABLE_END_MARKER }; class TestbedMetaEngine : public AdvancedMetaEngine { public: TestbedMetaEngine() : AdvancedMetaEngine(testbedDescriptions, sizeof(ADGameDescription), testbed_setting) { _md5Bytes = 512; _singleid = "testbed"; } virtual const char *getName() const { return "TestBed: The Backend Testing Framework"; }