2010-10-18 19:17:38 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
2021-12-26 17:47:58 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-02-18 01:34:21 +00:00
|
|
|
*
|
2010-10-18 19:17:38 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-02-18 01:34:21 +00:00
|
|
|
*
|
2010-10-18 19:17:38 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 17:47:58 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2010-10-18 19:17:38 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-06-10 18:19:18 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
2021-05-16 08:34:50 +00:00
|
|
|
#include "lastexpress/lastexpress.h"
|
2010-10-18 19:17:38 +00:00
|
|
|
|
|
|
|
namespace LastExpress {
|
|
|
|
|
|
|
|
static const PlainGameDescriptor lastExpressGames[] = {
|
|
|
|
// Games
|
|
|
|
{"lastexpress", "The Last Express"},
|
2021-11-13 21:40:31 +00:00
|
|
|
{nullptr, nullptr}
|
2010-10-18 19:17:38 +00:00
|
|
|
};
|
|
|
|
|
2021-05-16 08:34:50 +00:00
|
|
|
static const DebugChannelDef debugFlagList[] = {
|
|
|
|
{LastExpress::kLastExpressDebugGraphics, "Graphics", "Debug graphics & animation/sequence playback"},
|
|
|
|
{LastExpress::kLastExpressDebugResource, "Resource", "Debug resource management"},
|
|
|
|
{LastExpress::kLastExpressDebugCursor, "Cursor", "Debug cursor handling"},
|
|
|
|
{LastExpress::kLastExpressDebugSound, "Sound", "Debug sound playback"},
|
|
|
|
{LastExpress::kLastExpressDebugSubtitle, "Subtitle", "Debug subtitles"},
|
|
|
|
{LastExpress::kLastExpressDebugSavegame, "Savegame", "Debug savegames"},
|
|
|
|
{LastExpress::kLastExpressDebugLogic, "Logic", "Debug logic"},
|
|
|
|
{LastExpress::kLastExpressDebugScenes, "Scenes", "Debug scenes & hotspots"},
|
|
|
|
{LastExpress::kLastExpressDebugUnknown, "Unknown", "Debug unknown data"},
|
2021-05-22 10:01:17 +00:00
|
|
|
DEBUG_CHANNEL_END
|
2021-05-16 08:34:50 +00:00
|
|
|
};
|
|
|
|
|
2010-10-18 19:17:38 +00:00
|
|
|
static const ADGameDescription gameDescriptions[] = {
|
|
|
|
|
2010-10-25 22:14:53 +00:00
|
|
|
// The Last Express (English) - US Broderbund Release
|
|
|
|
// expressw.exe 1997-02-12 17:24:44
|
|
|
|
// express.exe 1997-02-12 17:29:08
|
2010-10-18 19:17:38 +00:00
|
|
|
{
|
|
|
|
"lastexpress",
|
|
|
|
"",
|
|
|
|
{
|
2010-10-25 22:14:53 +00:00
|
|
|
{"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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
Common::EN_ANY,
|
2010-10-24 19:10:13 +00:00
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
|
2010-10-23 14:37:26 +00:00
|
|
|
// The Last Express (English) - UK Broderbund Release
|
2010-10-25 22:14:53 +00:00
|
|
|
// expressw.exe 1997-04-02 14:30:32
|
|
|
|
// express.exe 1997-04-02 15:00:50
|
2010-10-23 14:37:26 +00:00
|
|
|
{
|
|
|
|
"lastexpress",
|
|
|
|
"",
|
|
|
|
{
|
2010-10-25 22:14:53 +00:00
|
|
|
{"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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2010-10-23 14:37:26 +00:00
|
|
|
},
|
|
|
|
Common::EN_ANY,
|
2010-10-24 19:10:13 +00:00
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2010-10-23 14:37:26 +00:00
|
|
|
},
|
|
|
|
|
2010-10-18 19:17:38 +00:00
|
|
|
// The Last Express (English) - Interplay Release
|
2011-01-24 12:41:16 +00:00
|
|
|
// expressw.exe ???
|
|
|
|
// express.exe ???
|
2010-10-18 19:17:38 +00:00
|
|
|
{
|
|
|
|
"lastexpress",
|
|
|
|
"",
|
|
|
|
{
|
|
|
|
{"HD.HPF", 0, "bcc32d977f92bb52c060a0b4e8589cac", 30715904},
|
|
|
|
{"CD1.HPF", 0, "8c86db47304033fcff32c69fddd5a920", 525522944},
|
|
|
|
{"CD2.HPF", 0, "58aa26e782d10ec5d2231e539d2fe6a2", 669581312},
|
|
|
|
{"CD3.HPF", 0, "00554fbf78a2ad391d98578fbbbe1c48", 641128448},
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
Common::EN_ANY,
|
2010-10-24 19:10:13 +00:00
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
|
2011-01-24 12:41:16 +00:00
|
|
|
// 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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2011-01-24 12:41:16 +00:00
|
|
|
},
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_DEMO | ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2011-01-24 12:41:16 +00:00
|
|
|
},
|
|
|
|
|
2010-10-25 22:14:53 +00:00
|
|
|
// The Last Express (French) - Broderbund Release
|
|
|
|
// expressw.exe 1997-04-02 09:31:24
|
|
|
|
// express.exe 1997-04-02 10:01:12
|
2010-10-18 19:17:38 +00:00
|
|
|
{
|
|
|
|
"lastexpress",
|
|
|
|
"",
|
|
|
|
{
|
2010-10-25 22:14:53 +00:00
|
|
|
{"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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
Common::FR_FRA,
|
2010-10-24 19:10:13 +00:00
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
|
2010-10-18 23:40:36 +00:00
|
|
|
// The Last Express (German)
|
2011-01-24 12:41:16 +00:00
|
|
|
// expressw.exe ???
|
|
|
|
// express.exe ???
|
2010-10-18 23:40:36 +00:00
|
|
|
{
|
|
|
|
"lastexpress",
|
|
|
|
"",
|
|
|
|
{
|
2011-06-26 18:34:56 +00:00
|
|
|
{"HD.HPF", 0, "7cdd70fc0b1555785f1e9e8d371ea85c", 31301632}, // 1997-04-08 14:33:42
|
2011-01-24 12:41:16 +00:00
|
|
|
{"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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2010-10-18 23:40:36 +00:00
|
|
|
},
|
|
|
|
Common::DE_DEU,
|
2010-10-24 19:10:13 +00:00
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2010-10-18 23:40:36 +00:00
|
|
|
},
|
|
|
|
|
2010-10-18 19:17:38 +00:00
|
|
|
// The Last Express (Spanish)
|
2011-01-24 12:41:16 +00:00
|
|
|
// expressw.exe 1997-04-02 07:30:32
|
|
|
|
// express.exe 1997-04-02 09:00:50
|
2010-10-18 19:17:38 +00:00
|
|
|
{
|
|
|
|
"lastexpress",
|
|
|
|
"",
|
|
|
|
{
|
2011-01-24 12:41:16 +00:00
|
|
|
{"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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
Common::ES_ESP,
|
2010-10-24 19:10:13 +00:00
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
|
|
|
|
2011-01-24 12:41:16 +00:00
|
|
|
// The Last Express (Italian)
|
|
|
|
// expressw.exe 1997-09-15 12:11:56
|
|
|
|
// express.exe 1997-09-15 12:41:46
|
2010-10-18 19:17:38 +00:00
|
|
|
{
|
|
|
|
"lastexpress",
|
2011-01-24 12:41:16 +00:00
|
|
|
"",
|
2010-10-18 19:17:38 +00:00
|
|
|
{
|
2011-06-26 18:34:56 +00:00
|
|
|
{"HD.HPF", 0, "5539e78fd7eecb70bc858e86b5709fe9", 29562880}, // 1997-12-11 14:11:52
|
2011-01-24 12:41:16 +00:00
|
|
|
{"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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
2011-01-24 12:41:16 +00:00
|
|
|
Common::IT_ITA,
|
2010-10-24 19:10:13 +00:00
|
|
|
Common::kPlatformUnknown,
|
2011-04-30 03:54:12 +00:00
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2010-10-18 19:17:38 +00:00
|
|
|
},
|
2012-07-14 18:02:44 +00:00
|
|
|
|
2011-06-26 18:34:56 +00:00
|
|
|
// 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
|
2018-09-14 02:17:56 +00:00
|
|
|
AD_LISTEND
|
2011-06-26 18:34:56 +00:00
|
|
|
},
|
|
|
|
Common::RU_RUS,
|
|
|
|
Common::kPlatformUnknown,
|
|
|
|
ADGF_UNSTABLE,
|
2019-09-28 21:20:34 +00:00
|
|
|
GUIO2(GUIO_NOASPECT, GUIO_NOMIDI)
|
2011-06-26 18:34:56 +00:00
|
|
|
},
|
2011-01-24 12:41:16 +00:00
|
|
|
|
2010-10-18 19:17:38 +00:00
|
|
|
AD_TABLE_END_MARKER
|
|
|
|
};
|
|
|
|
|
2020-10-06 10:43:17 +00:00
|
|
|
static const char *const directoryGlobs[] = {
|
2021-04-15 19:20:04 +00:00
|
|
|
"data", // GOG release
|
2021-11-13 21:40:31 +00:00
|
|
|
nullptr
|
2020-10-06 10:43:17 +00:00
|
|
|
};
|
2010-10-18 19:17:38 +00:00
|
|
|
|
2024-05-26 08:17:53 +00:00
|
|
|
class LastExpressMetaEngineDetection : public AdvancedMetaEngineDetection<ADGameDescription> {
|
2010-10-18 19:17:38 +00:00
|
|
|
public:
|
2024-05-26 08:17:53 +00:00
|
|
|
LastExpressMetaEngineDetection() : AdvancedMetaEngineDetection(gameDescriptions, lastExpressGames) {
|
2016-03-08 17:30:58 +00:00
|
|
|
_guiOptions = GUIO2(GUIO_NOSUBTITLES, GUIO_NOSFX);
|
2020-10-06 10:43:17 +00:00
|
|
|
_maxScanDepth = 2;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
2011-06-10 13:53:53 +00:00
|
|
|
}
|
2010-10-18 19:17:38 +00:00
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 16:23:35 +00:00
|
|
|
return "lastexpress";
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "The Last Express";
|
2010-10-18 19:17:38 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 11:05:30 +00:00
|
|
|
const char *getOriginalCopyright() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "The Last Express (C) 1997 Smoking Car Productions";
|
2010-10-18 19:17:38 +00:00
|
|
|
}
|
2021-05-16 08:34:50 +00:00
|
|
|
|
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
2010-10-18 19:17:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace LastExpress
|
|
|
|
|
2020-10-11 21:14:39 +00:00
|
|
|
REGISTER_PLUGIN_STATIC(LASTEXPRESS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, LastExpress::LastExpressMetaEngineDetection);
|