2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2007-04-27 12:58:35 +00:00
|
|
|
*
|
2007-05-30 21:56:52 +00:00
|
|
|
* 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.
|
2007-04-27 12:58:35 +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 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-09-19 08:40:12 +00:00
|
|
|
|
2007-04-27 12:58:35 +00:00
|
|
|
|
|
|
|
#include "base/plugins.h"
|
|
|
|
|
|
|
|
#include "common/advancedDetector.h"
|
|
|
|
|
|
|
|
#include "cruise/cruise.h"
|
|
|
|
|
|
|
|
namespace Cruise {
|
2007-04-27 22:33:45 +00:00
|
|
|
|
2007-04-27 12:58:35 +00:00
|
|
|
struct CRUISEGameDescription {
|
|
|
|
Common::ADGameDescription desc;
|
|
|
|
|
|
|
|
int gameType;
|
|
|
|
uint32 features;
|
|
|
|
};
|
|
|
|
|
|
|
|
int CruiseEngine::getGameType() const { return _gameDescription->gameType; }
|
|
|
|
uint32 CruiseEngine::getFeatures() const { return _gameDescription->features; }
|
|
|
|
Common::Language CruiseEngine::getLanguage() const { return _gameDescription->desc.language; }
|
|
|
|
Common::Platform CruiseEngine::getPlatform() const { return _gameDescription->desc.platform; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static const PlainGameDescriptor cruiseGames[] = {
|
|
|
|
{"cruise", "Cinematique evo.2 engine game"},
|
2007-04-27 14:43:09 +00:00
|
|
|
{"cruise", "Cruise for a corpse"},
|
2007-04-27 12:58:35 +00:00
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const Common::ADObsoleteGameID obsoleteGameIDsTable[] = {
|
|
|
|
{"cruise", "cruise", Common::kPlatformUnknown},
|
|
|
|
{0, 0, Common::kPlatformUnknown}
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Cruise {
|
|
|
|
|
|
|
|
static const CRUISEGameDescription gameDescriptions[] = {
|
|
|
|
{
|
2007-04-27 22:33:45 +00:00
|
|
|
{
|
2007-04-27 12:58:35 +00:00
|
|
|
"cruise",
|
2007-11-11 01:04:40 +00:00
|
|
|
"16 colors",
|
2007-04-27 12:58:35 +00:00
|
|
|
AD_ENTRY1("D1", "41a7a4d426dbd048eb369cfee4bb2717"),
|
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformPC,
|
|
|
|
Common::ADGF_NO_FLAGS
|
|
|
|
},
|
|
|
|
GType_CRUISE,
|
|
|
|
0,
|
2007-04-27 22:33:45 +00:00
|
|
|
},
|
2007-11-11 01:04:40 +00:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"cruise",
|
|
|
|
"256 colors",
|
|
|
|
AD_ENTRY1("D1", "e258865807ea31b2d523340e6f0a606b"),
|
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformPC,
|
|
|
|
Common::ADGF_NO_FLAGS
|
|
|
|
},
|
|
|
|
GType_CRUISE,
|
|
|
|
0,
|
|
|
|
},
|
2007-04-27 14:43:09 +00:00
|
|
|
{
|
2007-04-27 22:33:45 +00:00
|
|
|
{
|
2007-04-27 14:43:09 +00:00
|
|
|
"cruise",
|
2007-04-28 22:31:55 +00:00
|
|
|
"256 colors",
|
2007-04-27 14:43:09 +00:00
|
|
|
AD_ENTRY1("D1", "a90d2b9ead6b4d812cd14268672cf178"),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformPC,
|
|
|
|
Common::ADGF_NO_FLAGS
|
|
|
|
},
|
|
|
|
GType_CRUISE,
|
|
|
|
0,
|
|
|
|
},
|
2007-04-27 22:33:45 +00:00
|
|
|
{AD_TABLE_END_MARKER, 0, 0}
|
2007-04-27 12:58:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static const Common::ADParams detectionParams = {
|
|
|
|
// Pointer to ADGameDescription or its superset structure
|
|
|
|
(const byte *)Cruise::gameDescriptions,
|
|
|
|
// Size of that superset structure
|
|
|
|
sizeof(Cruise::CRUISEGameDescription),
|
|
|
|
// Number of bytes to compute MD5 sum for
|
|
|
|
5000,
|
|
|
|
// List of all engine targets
|
|
|
|
cruiseGames,
|
|
|
|
// Structure for autoupgrading obsolete targets
|
|
|
|
obsoleteGameIDsTable,
|
|
|
|
// Name of single gameid (optional)
|
|
|
|
"cruise",
|
|
|
|
// List of files for file-based fallback detection (optional)
|
|
|
|
0,
|
|
|
|
// Fallback callback
|
|
|
|
0,
|
|
|
|
// Flags
|
|
|
|
Common::kADFlagAugmentPreferredTarget
|
|
|
|
};
|
|
|
|
|
2007-11-03 21:06:58 +00:00
|
|
|
static bool Engine_CRUISE_createInstance(OSystem *syst, Engine **engine, Common::EncapsulatedADGameDesc encapsulatedDesc) {
|
|
|
|
const Cruise::CRUISEGameDescription *gd = (const Cruise::CRUISEGameDescription *)(encapsulatedDesc.realDesc);
|
|
|
|
if (gd) {
|
|
|
|
*engine = new Cruise::CruiseEngine(syst, gd);
|
|
|
|
}
|
|
|
|
return gd != 0;
|
2007-04-27 12:58:35 +00:00
|
|
|
}
|
|
|
|
|
2007-11-03 21:06:58 +00:00
|
|
|
ADVANCED_DETECTOR_DEFINE_PLUGIN(CRUISE, Engine_CRUISE_createInstance, detectionParams);
|
|
|
|
|
|
|
|
REGISTER_PLUGIN(CRUISE, "Cinematique evo 2 engine", "Cruise for a Corpse (C) Delphine Software");
|