2014-09-21 18:19:07 +02:00
|
|
|
/* ResidualVM - A 3D game interpreter
|
2010-01-21 09:32:38 +10:30
|
|
|
*
|
2014-09-21 18:19:07 +02:00
|
|
|
* ResidualVM is the legal property of its developers, whose names
|
2010-01-21 09:32:38 +10:30
|
|
|
* are too numerous to list here. Please refer to the AUTHORS
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
2014-09-21 18:19:07 +02: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 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
2010-01-21 09:32:38 +10:30
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2014-09-21 18:19:07 +02:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2010-01-21 09:32:38 +10:30
|
|
|
*
|
2014-09-21 18:19:07 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-01-21 09:32:38 +10:30
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-09-14 02:09:51 +02:00
|
|
|
#include "engines/advancedDetector.h"
|
2010-01-21 09:32:38 +10:30
|
|
|
#include "engines/stark/stark.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Stark {
|
|
|
|
|
|
|
|
static const PlainGameDescriptor starkGames[] = {
|
|
|
|
{"stark", "Stark Game"},
|
|
|
|
{"tlj", "The Longest Journey"},
|
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
2010-01-24 22:34:53 +08:00
|
|
|
static const ADGameDescription gameDescriptions[] = {
|
2010-01-21 09:32:38 +10:30
|
|
|
// The Longest Journey
|
|
|
|
// English 4CD
|
|
|
|
{
|
2010-01-28 18:14:10 +01:00
|
|
|
"tlj", "4 CD", {
|
|
|
|
// TODO: Fill file sizes and chapters.ini's MD5
|
|
|
|
{"x.xarc", 0, "a0559457126caadab0cadac02d35f26f", -1},
|
|
|
|
{"chapters.ini", 0, "", -1},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
2010-01-24 22:34:53 +08:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_NO_FLAGS,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-21 09:32:38 +10:30
|
|
|
},
|
|
|
|
|
|
|
|
// The Longest Journey
|
|
|
|
// English DVD
|
|
|
|
{
|
2010-01-28 18:14:10 +01:00
|
|
|
"tlj", "DVD", {
|
|
|
|
// TODO: Fill file sizes and chapters.ini's MD5
|
|
|
|
{"x.xarc", 0, "de8327850d7bba90b690b141eaa23f61", -1},
|
|
|
|
{"chapters.ini", 0, "", -1},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
2010-01-24 22:34:53 +08:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
2010-01-21 09:32:38 +10:30
|
|
|
GF_DVD,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-21 09:32:38 +10:30
|
|
|
},
|
2010-01-24 23:23:39 +08:00
|
|
|
|
2010-01-21 09:32:38 +10:30
|
|
|
// The Longest Journey
|
2010-01-27 23:26:12 +01:00
|
|
|
// English Old Demo
|
2010-01-21 09:32:38 +10:30
|
|
|
{
|
2010-01-27 23:26:12 +01:00
|
|
|
"tlj", "Old Demo", {
|
|
|
|
{"x.xarc", 0, "97abc1bb9239dee4c208e533f3c97e1c", 98},
|
|
|
|
{"chapters.ini", 0, "5b5a1f1dd2297d9ce0d3d12216d5d2c5", 485},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
2010-01-24 22:34:53 +08:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-21 09:32:38 +10:30
|
|
|
},
|
2010-01-24 23:23:39 +08:00
|
|
|
|
2010-01-21 09:32:38 +10:30
|
|
|
// The Longest Journey
|
2010-01-27 23:26:12 +01:00
|
|
|
// English v1.61 Demo
|
2010-01-21 09:32:38 +10:30
|
|
|
{
|
2010-01-28 18:14:10 +01:00
|
|
|
"tlj", "v1.61 Demo", {
|
|
|
|
{"x.xarc", 0, "61093bcd499b386ed5c0345c52f48909", 98},
|
|
|
|
{"chapters.ini", 0, "5b5a1f1dd2297d9ce0d3d12216d5d2c5", 485},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
2010-01-24 22:34:53 +08:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO | GF_DVD,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-21 09:32:38 +10:30
|
|
|
},
|
|
|
|
|
2010-01-27 23:26:12 +01:00
|
|
|
// The Longest Journey
|
|
|
|
// French Demo
|
|
|
|
{
|
|
|
|
"tlj", "Demo", {
|
|
|
|
{"x.xarc", 0, "97abc1bb9239dee4c208e533f3c97e1c", 98},
|
|
|
|
{"chapters.ini", 0, "e54f6370dca06496069790840409cf95", 506},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-27 23:26:12 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
// The Longest Journey
|
|
|
|
// Norwegian Demo
|
|
|
|
{
|
|
|
|
"tlj", "Demo", {
|
|
|
|
{"x.xarc", 0, "97abc1bb9239dee4c208e533f3c97e1c", 98},
|
|
|
|
{"chapters.ini", 0, "f358f604abd1aa1476ed05d6d271ac70", 473},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
|
|
|
Common::NB_NOR,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-27 23:26:12 +01:00
|
|
|
},
|
2011-09-14 02:25:54 +02:00
|
|
|
|
|
|
|
// The Longest Journey
|
|
|
|
// Norwegian DLC-edition (DVD?)
|
|
|
|
{
|
|
|
|
"tlj", "DVD", {
|
|
|
|
{"x.xarc", 0, "de8327850d7bba90b690b141eaa23f61", 3032},
|
|
|
|
{"chapters.ini", 0, "f358f604abd1aa1476ed05d6d271ac70", 473},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
|
|
|
Common::NB_NOR,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2011-09-14 02:25:54 +02:00
|
|
|
},
|
|
|
|
|
2010-01-24 22:45:50 +08:00
|
|
|
// The Longest Journey
|
|
|
|
// Spanish 4CD
|
|
|
|
{
|
2010-01-27 23:26:12 +01:00
|
|
|
"tlj", "4 CD", {
|
|
|
|
{"x.xarc", 0, "a0559457126caadab0cadac02d35f26f", 3032},
|
|
|
|
{"chapters.ini", 0, "3640df6d536b186bff228337284d9631", 525},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
2010-01-24 22:45:50 +08:00
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_NO_FLAGS,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-24 22:45:50 +08:00
|
|
|
},
|
|
|
|
|
2014-09-21 14:19:41 +02:00
|
|
|
// The Longest Journey
|
|
|
|
// French 2CD
|
|
|
|
{
|
|
|
|
"tlj", "2 CD", {
|
|
|
|
{"x.xarc", 0, "de8327850d7bba90b690b141eaa23f61", 3032},
|
|
|
|
{"chapters.ini", 0, "e54f6370dca06496069790840409cf95", 506},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
|
|
|
},
|
|
|
|
|
|
|
|
|
2010-01-27 23:26:12 +01:00
|
|
|
// The Longest Journey
|
|
|
|
// Swedish Demo
|
|
|
|
{
|
|
|
|
"tlj", "Demo", {
|
|
|
|
{"x.xarc", 0, "97abc1bb9239dee4c208e533f3c97e1c", 98},
|
|
|
|
{"chapters.ini", 0, "f6a2007300209492b7b90b4c0467832d", 462},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
|
|
|
Common::SE_SWE,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-27 23:26:12 +01:00
|
|
|
},
|
|
|
|
|
2010-01-24 22:34:53 +08:00
|
|
|
AD_TABLE_END_MARKER
|
2010-01-21 09:32:38 +10:30
|
|
|
};
|
|
|
|
|
2010-01-28 18:14:10 +01:00
|
|
|
// File based fallback game description
|
|
|
|
static const ADGameDescription fallbackDescription = {
|
|
|
|
"tlj", "Unknown", {
|
|
|
|
{"x.xarc", 0, NULL, -1},
|
|
|
|
{"chapters.ini", 0, NULL, -1},
|
|
|
|
{NULL, 0, NULL, 0}
|
|
|
|
},
|
|
|
|
Common::UNK_LANG,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_NO_FLAGS,
|
2014-09-21 14:16:40 +02:00
|
|
|
GUIO_NONE
|
2010-01-28 18:14:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static const ADFileBasedFallback fileBasedFallback[] = {
|
|
|
|
{&fallbackDescription, {"x.xarc", "chapters.ini", "w_world.ini", NULL}},
|
|
|
|
{NULL, {NULL}}
|
|
|
|
};
|
|
|
|
|
2010-01-21 09:32:38 +10:30
|
|
|
class StarkMetaEngine : public AdvancedMetaEngine {
|
|
|
|
public:
|
2011-09-14 02:25:54 +02:00
|
|
|
StarkMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(ADGameDescription), starkGames) {
|
2011-09-14 02:09:51 +02:00
|
|
|
_singleid = "stark";
|
2014-09-21 14:16:40 +02:00
|
|
|
_guioptions = GUIO1(GUIO_NOMIDI);
|
2011-09-14 02:09:51 +02:00
|
|
|
}
|
|
|
|
|
2010-01-21 09:32:38 +10:30
|
|
|
virtual const char *getName() const {
|
|
|
|
return "Stark Engine";
|
|
|
|
}
|
2010-01-24 23:23:39 +08:00
|
|
|
|
|
|
|
virtual const char *getOriginalCopyright() const {
|
2010-01-21 09:32:38 +10:30
|
|
|
return "(C) Funcom";
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool StarkMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
2010-01-24 23:23:39 +08:00
|
|
|
if (desc)
|
2010-01-24 22:34:53 +08:00
|
|
|
*engine = new StarkEngine(syst, desc);
|
2010-01-24 23:23:39 +08:00
|
|
|
|
2010-01-24 22:34:53 +08:00
|
|
|
return desc != 0;
|
2010-01-21 09:32:38 +10:30
|
|
|
}
|
|
|
|
|
2010-01-24 22:34:53 +08:00
|
|
|
} // End of namespace Stark
|
|
|
|
|
2010-01-21 09:32:38 +10:30
|
|
|
#if PLUGIN_ENABLED_DYNAMIC(STARK)
|
2010-01-24 22:34:53 +08:00
|
|
|
REGISTER_PLUGIN_DYNAMIC(STARK, PLUGIN_TYPE_ENGINE, Stark::StarkMetaEngine);
|
2010-01-21 09:32:38 +10:30
|
|
|
#else
|
2010-01-24 22:34:53 +08:00
|
|
|
REGISTER_PLUGIN_STATIC(STARK, PLUGIN_TYPE_ENGINE, Stark::StarkMetaEngine);
|
2010-01-21 09:32:38 +10:30
|
|
|
#endif
|