2010-01-21 09:32:38 +10:30
|
|
|
/* Residual - A 3D game interpreter
|
|
|
|
*
|
|
|
|
* Residual is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the AUTHORS
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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-24 22:34:53 +08:00
|
|
|
"tlj", "",
|
|
|
|
AD_ENTRY1("x.xarc", "a0559457126caadab0cadac02d35f26f"),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
Common::GUIO_NONE
|
2010-01-21 09:32:38 +10:30
|
|
|
},
|
|
|
|
|
|
|
|
// The Longest Journey
|
|
|
|
// English DVD
|
|
|
|
{
|
2010-01-24 22:34:53 +08:00
|
|
|
"tlj", "DVD",
|
|
|
|
AD_ENTRY1("x.xarc", "de8327850d7bba90b690b141eaa23f61"),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
2010-01-21 09:32:38 +10:30
|
|
|
GF_DVD,
|
2010-01-24 22:34:53 +08:00
|
|
|
Common::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
|
|
|
|
// English Demo
|
|
|
|
{
|
2010-01-24 22:34:53 +08:00
|
|
|
"tlj", "",
|
|
|
|
AD_ENTRY1("x.xarc", "97abc1bb9239dee4c208e533f3c97e1c"),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
|
|
|
Common::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
|
|
|
|
// English DVD Demo
|
|
|
|
{
|
2010-01-24 22:34:53 +08:00
|
|
|
"tlj", "DVD",
|
|
|
|
AD_ENTRY1("x.xarc", "61093bcd499b386ed5c0345c52f48909"),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO | GF_DVD,
|
|
|
|
Common::GUIO_NONE
|
2010-01-21 09:32:38 +10:30
|
|
|
},
|
|
|
|
|
2010-01-24 22:45:50 +08:00
|
|
|
// The Longest Journey
|
|
|
|
// Spanish 4CD
|
|
|
|
{
|
|
|
|
"tlj", "",
|
|
|
|
AD_ENTRY1s("x.xarc", "a0559457126caadab0cadac02d35f26f", 3032),
|
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
Common::GUIO_NONE
|
|
|
|
},
|
|
|
|
|
2010-01-24 22:34:53 +08:00
|
|
|
AD_TABLE_END_MARKER
|
2010-01-21 09:32:38 +10:30
|
|
|
};
|
|
|
|
|
|
|
|
static const ADParams detectionParams = {
|
|
|
|
// Pointer to ADGameDescription or its superset structure
|
2010-01-24 22:34:53 +08:00
|
|
|
(const byte *)gameDescriptions,
|
2010-01-21 09:32:38 +10:30
|
|
|
// Size of that superset structure
|
2010-01-24 22:34:53 +08:00
|
|
|
sizeof(ADGameDescription),
|
2010-01-21 09:32:38 +10:30
|
|
|
// Number of bytes to compute MD5 sum for
|
|
|
|
5000,
|
|
|
|
// List of all engine targets
|
|
|
|
starkGames,
|
|
|
|
// Structure for autoupgrading obsolete targets
|
|
|
|
0,
|
|
|
|
// Name of single gameid (optional)
|
|
|
|
"stark",
|
|
|
|
// List of files for file-based fallback detection (optional)
|
|
|
|
0,
|
|
|
|
// Flags
|
2010-01-24 20:38:33 +08:00
|
|
|
0,
|
|
|
|
// GUI Options
|
|
|
|
Common::GUIO_NOMIDI
|
2010-01-21 09:32:38 +10:30
|
|
|
};
|
|
|
|
|
|
|
|
class StarkMetaEngine : public AdvancedMetaEngine {
|
|
|
|
public:
|
|
|
|
StarkMetaEngine() : AdvancedMetaEngine(detectionParams) {}
|
2010-01-24 23:23:39 +08: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
|