2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2006-10-15 01:06:44 +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.
|
2006-10-15 01:06:44 +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
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
|
|
|
|
#include "base/plugins.h"
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
2008-10-06 12:48:52 +00:00
|
|
|
#include "common/system.h"
|
2006-10-15 01:06:44 +00:00
|
|
|
|
|
|
|
#include "cine/cine.h"
|
2008-11-12 23:21:05 +00:00
|
|
|
#include "cine/various.h"
|
2006-10-15 01:06:44 +00:00
|
|
|
|
|
|
|
namespace Cine {
|
2007-11-04 18:03:18 +00:00
|
|
|
|
2007-01-21 20:24:38 +00:00
|
|
|
struct CINEGameDescription {
|
2009-01-29 22:13:01 +00:00
|
|
|
ADGameDescription desc;
|
2007-01-21 20:24:38 +00:00
|
|
|
|
|
|
|
int gameType;
|
|
|
|
uint32 features;
|
|
|
|
};
|
|
|
|
|
|
|
|
int CineEngine::getGameType() const { return _gameDescription->gameType; }
|
|
|
|
uint32 CineEngine::getFeatures() const { return _gameDescription->features; }
|
|
|
|
Common::Language CineEngine::getLanguage() const { return _gameDescription->desc.language; }
|
|
|
|
Common::Platform CineEngine::getPlatform() const { return _gameDescription->desc.platform; }
|
|
|
|
|
2007-11-04 18:03:18 +00:00
|
|
|
} // End of namespace Cine
|
2006-10-15 01:06:44 +00:00
|
|
|
|
|
|
|
static const PlainGameDescriptor cineGames[] = {
|
2007-01-29 23:25:51 +00:00
|
|
|
{"cine", "Cinematique evo.1 engine game"},
|
2006-10-15 01:06:44 +00:00
|
|
|
{"fw", "Future Wars"},
|
|
|
|
{"os", "Operation Stealth"},
|
2006-11-12 03:23:29 +00:00
|
|
|
{0, 0}
|
2006-10-15 01:06:44 +00:00
|
|
|
};
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
static const ADObsoleteGameID obsoleteGameIDsTable[] = {
|
2007-01-29 23:25:51 +00:00
|
|
|
{"fw", "cine", Common::kPlatformUnknown},
|
|
|
|
{"os", "cine", Common::kPlatformUnknown},
|
|
|
|
{0, 0, Common::kPlatformUnknown}
|
|
|
|
};
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
namespace Cine {
|
|
|
|
|
2009-06-06 17:56:41 +00:00
|
|
|
using Common::GUIO_NONE;
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
static const CINEGameDescription gameDescriptions[] = {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "61d003202d301c29dd399acfb1354310"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
2008-08-08 18:28:13 +00:00
|
|
|
// This is a CD version of Future Wars published by Sony.
|
|
|
|
// This version has a crypted AUTO00.PRC.
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"Sony CD version",
|
|
|
|
{
|
|
|
|
{ "AUTO00.PRC", 0, "4fe1e7930b38e3c63f0f2474d471bf8f", -1},
|
|
|
|
{ "PART01", 0, "61d003202d301c29dd399acfb1354310", -1},
|
|
|
|
{ NULL, 0, NULL, 0}
|
|
|
|
},
|
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_CD,
|
|
|
|
GUIO_NONE
|
2008-08-08 18:28:13 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
GF_CD | GF_CRYPTED_BOOT_PRC,
|
|
|
|
},
|
|
|
|
|
2006-10-15 21:50:34 +00:00
|
|
|
{
|
|
|
|
// This is the version included in the UK "Classic Collection"
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "91d7271155520eae6915a9dd2dac120c"),
|
2006-10-15 21:50:34 +00:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 21:50:34 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "f5e98fcca3fb5e7afa284c81c39d8b14"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
2006-11-11 15:37:03 +00:00
|
|
|
GF_ALT_FONT,
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "570109f965c7f53984b98c83d86eb206"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
2006-11-11 15:37:03 +00:00
|
|
|
GF_ALT_FONT,
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "5d1acb97abe9591f9008e00d07add95a"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "57afd280b598b4180fda6689fbedc4b8"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
2009-09-14 12:23:17 +00:00
|
|
|
{ // Amiga "Interplay" labeled version
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1("part01", "a17a5eb15200c63276d486a88263ccd0"),
|
2009-09-14 12:50:44 +00:00
|
|
|
Common::EN_USA,
|
2009-09-14 12:23:17 +00:00
|
|
|
Common::kPlatformAmiga,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "3a87a913e0e33963a48a7f822ca0eb0e"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
2006-11-11 15:37:03 +00:00
|
|
|
GF_ALT_FONT,
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "5ad0007ccd5f7b3dd6b15ea7f281f9e1"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "460f2da8793bc581a2d4b6fc19ccb5ae"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "1c8e5207743172134409ac58860021af"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::IT_ITA,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"Demo",
|
2006-12-29 00:03:03 +00:00
|
|
|
{
|
2007-01-24 22:42:44 +00:00
|
|
|
{ "demo", 0, "0f50767cd964e302d3af0ba2528df8c4", -1},
|
|
|
|
{ "demo.prc", 0, "d2ac3a743d288359c63644ea7071edae", -1},
|
|
|
|
{ NULL, 0, NULL, 0}
|
2006-12-29 00:03:03 +00:00
|
|
|
},
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_DEMO,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "36050db13af57e462ca1adc4df99de4e"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformAtariST,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fw",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("part01", "ef245573b7dab0d4825ceb98e37cef4d"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformAtariST,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_FW,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
2006-10-15 21:11:27 +00:00
|
|
|
"256 colors",
|
2008-01-28 00:14:17 +00:00
|
|
|
AD_ENTRY1("procs00", "d6752e7d25924cb866b61eb7cb0c8b56"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
2008-08-05 18:17:55 +00:00
|
|
|
{
|
|
|
|
// This is a 16 color PC version (It came on three 720kB 3.5" disks).
|
|
|
|
// The protagonist is named John Glames in this version.
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1("procs1", "9629129b86979fa592c1787385bf3695"),
|
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2008-08-05 18:17:55 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs1", "d8c3a9d05a63e4cfa801826a7063a126"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
2006-10-15 21:11:27 +00:00
|
|
|
"256 colors",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs00", "862a75d76fb7fffec30e52be9ad1c474"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
GF_CD,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs1", "39b91ae35d1297ce0a76a1a803ca1593"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs1", "74c2dabd9d212525fca8875a5f6d8994"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
2006-10-15 21:11:27 +00:00
|
|
|
"256 colors",
|
2006-12-29 00:03:03 +00:00
|
|
|
{
|
2007-01-24 22:42:44 +00:00
|
|
|
{ "procs1", 0, "74c2dabd9d212525fca8875a5f6d8994", -1},
|
|
|
|
{ "sds1", 0, "75443ba39cdc95667e07d7118e5c151c", -1},
|
|
|
|
{ NULL, 0, NULL, 0}
|
2006-12-29 00:03:03 +00:00
|
|
|
},
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
GF_CD,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
2006-10-15 21:11:27 +00:00
|
|
|
"256 colors",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs00", "f143567f08cfd1a9b1c9a41c89eadfef"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs1", "da066e6b8dd93f2502c2a3755f08dc12"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::IT_ITA,
|
|
|
|
Common::kPlatformPC,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "a9da5531ead0ebf9ad387fa588c0cbb0"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"alt",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "8a429ced2f4acff8a15ae125174042e8"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "d5f27e33fc29c879f36f15b86ccfa58c"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "8b7dce249821d3a62b314399c4334347"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "35fc295ddd0af9da932d256ba799a4b0"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "d4ea4a97e01fa67ea066f9e785050ed2"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"Demo",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("demo", "8d3a750d1c840b1b1071e42f9e6f6aa2"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformAmiga,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_DEMO,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
GF_DEMO,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "1501d5ae364b2814a33ed19347c3fcae"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformAtariST,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"os",
|
|
|
|
"",
|
2006-12-29 00:03:03 +00:00
|
|
|
AD_ENTRY1("procs0", "2148d25de3219dd4a36580ca735d0afa"),
|
2006-10-15 01:06:44 +00:00
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformAtariST,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO_NONE
|
2006-10-15 01:06:44 +00:00
|
|
|
},
|
|
|
|
GType_OS,
|
|
|
|
0,
|
|
|
|
},
|
|
|
|
|
2007-02-13 01:28:18 +00:00
|
|
|
{ AD_TABLE_END_MARKER, 0, 0 }
|
2006-10-15 01:06:44 +00:00
|
|
|
};
|
|
|
|
|
2007-11-04 18:03:18 +00:00
|
|
|
} // End of namespace Cine
|
2007-01-24 22:24:52 +00:00
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
static const ADParams detectionParams = {
|
2007-01-24 22:24:52 +00:00
|
|
|
// Pointer to ADGameDescription or its superset structure
|
|
|
|
(const byte *)Cine::gameDescriptions,
|
|
|
|
// Size of that superset structure
|
|
|
|
sizeof(Cine::CINEGameDescription),
|
|
|
|
// Number of bytes to compute MD5 sum for
|
|
|
|
5000,
|
|
|
|
// List of all engine targets
|
|
|
|
cineGames,
|
|
|
|
// Structure for autoupgrading obsolete targets
|
2007-01-29 23:25:51 +00:00
|
|
|
obsoleteGameIDsTable,
|
2007-01-28 07:31:26 +00:00
|
|
|
// Name of single gameid (optional)
|
|
|
|
"cine",
|
2007-02-04 03:10:27 +00:00
|
|
|
// List of files for file-based fallback detection (optional)
|
|
|
|
0,
|
2007-01-28 07:31:26 +00:00
|
|
|
// Flags
|
2009-06-06 17:56:41 +00:00
|
|
|
0,
|
|
|
|
// Additional GUI options (for every game}
|
|
|
|
Common::GUIO_NOSPEECH | Common::GUIO_NOMIDI
|
2007-01-24 22:24:52 +00:00
|
|
|
};
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
class CineMetaEngine : public AdvancedMetaEngine {
|
2008-02-02 02:35:13 +00:00
|
|
|
public:
|
2009-01-29 22:13:01 +00:00
|
|
|
CineMetaEngine() : AdvancedMetaEngine(detectionParams) {}
|
2008-02-02 02:35:13 +00:00
|
|
|
|
|
|
|
virtual const char *getName() const {
|
|
|
|
return "Cinematique evo 1 engine";
|
|
|
|
}
|
|
|
|
|
2009-03-05 12:04:58 +00:00
|
|
|
virtual const char *getOriginalCopyright() const {
|
2008-02-02 02:35:13 +00:00
|
|
|
return "Future Wars & Operation Stealth (C) Delphine Software";
|
|
|
|
}
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
|
2008-08-15 18:15:14 +00:00
|
|
|
virtual bool hasFeature(MetaEngineFeature f) const;
|
2008-07-29 19:01:17 +00:00
|
|
|
virtual SaveStateList listSaves(const char *target) const;
|
2008-11-09 16:13:34 +00:00
|
|
|
virtual int getMaximumSaveSlot() const;
|
2008-11-12 23:39:38 +00:00
|
|
|
virtual void removeSaveState(const char *target, int slot) const;
|
2008-02-02 02:35:13 +00:00
|
|
|
};
|
|
|
|
|
2008-08-15 18:15:14 +00:00
|
|
|
bool CineMetaEngine::hasFeature(MetaEngineFeature f) const {
|
|
|
|
return
|
|
|
|
(f == kSupportsListSaves) ||
|
2008-11-12 23:39:38 +00:00
|
|
|
(f == kSupportsLoadingDuringStartup) ||
|
|
|
|
(f == kSupportsDeleteSave);
|
2008-08-15 18:15:14 +00:00
|
|
|
}
|
|
|
|
|
2008-11-04 16:11:40 +00:00
|
|
|
bool Cine::CineEngine::hasFeature(EngineFeature f) const {
|
|
|
|
return
|
2008-11-12 23:21:05 +00:00
|
|
|
(f == kSupportsRTL) ||
|
|
|
|
(f == kSupportsLoadingDuringRuntime) ||
|
|
|
|
(f == kSupportsSavingDuringRuntime);
|
2008-11-04 16:11:40 +00:00
|
|
|
}
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
bool CineMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
2008-03-14 17:31:04 +00:00
|
|
|
const Cine::CINEGameDescription *gd = (const Cine::CINEGameDescription *)desc;
|
2007-11-03 21:06:58 +00:00
|
|
|
if (gd) {
|
|
|
|
*engine = new Cine::CineEngine(syst, gd);
|
|
|
|
}
|
|
|
|
return gd != 0;
|
2006-11-12 03:23:29 +00:00
|
|
|
}
|
2006-10-15 01:06:44 +00:00
|
|
|
|
2008-07-29 19:01:17 +00:00
|
|
|
SaveStateList CineMetaEngine::listSaves(const char *target) const {
|
|
|
|
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
|
|
|
|
SaveStateList saveList;
|
2008-08-15 19:44:17 +00:00
|
|
|
|
|
|
|
Common::String pattern = target;
|
|
|
|
pattern += ".?";
|
2009-05-29 14:38:22 +00:00
|
|
|
Common::StringList filenames = saveFileMan->listSavefiles(pattern);
|
2008-08-15 19:44:17 +00:00
|
|
|
sort(filenames.begin(), filenames.end());
|
2009-08-03 17:52:07 +00:00
|
|
|
Common::StringList::const_iterator file;
|
2008-08-15 19:44:17 +00:00
|
|
|
|
2008-07-29 19:01:17 +00:00
|
|
|
Common::String filename = target;
|
|
|
|
filename += ".dir";
|
2009-05-29 14:38:22 +00:00
|
|
|
Common::InSaveFile *in = saveFileMan->openForLoading(filename);
|
2008-07-29 19:01:17 +00:00
|
|
|
if (in) {
|
2009-08-03 17:52:07 +00:00
|
|
|
typedef char CommandeType[20];
|
|
|
|
CommandeType saveNames[10];
|
|
|
|
|
|
|
|
// Initialize all savegames' descriptions to empty strings
|
|
|
|
// so that if the savegames' descriptions can only be partially read from file
|
|
|
|
// then the missing ones are correctly set to empty strings.
|
|
|
|
memset(saveNames, 0, sizeof(saveNames));
|
|
|
|
|
|
|
|
in->read(saveNames, 10 * 20);
|
|
|
|
CommandeType saveDesc;
|
|
|
|
|
|
|
|
for (file = filenames.begin(); file != filenames.end(); ++file) {
|
|
|
|
// Jump over savegame files that don't end with a digit (e.g. "fw.3" is ok, "fw.a" is not).
|
|
|
|
if (!isdigit(file->lastChar()))
|
|
|
|
continue;
|
|
|
|
|
2008-08-15 19:44:17 +00:00
|
|
|
// Obtain the last digit of the filename, since they correspond to the save slot
|
|
|
|
int slotNum = atoi(file->c_str() + file->size() - 1);
|
|
|
|
|
2009-08-03 17:52:07 +00:00
|
|
|
// Copy the savegame description making sure it ends with a trailing zero
|
|
|
|
strncpy(saveDesc, saveNames[slotNum], 20);
|
|
|
|
saveDesc[sizeof(CommandeType) - 1] = 0;
|
|
|
|
|
|
|
|
saveList.push_back(SaveStateDescriptor(slotNum, saveDesc));
|
|
|
|
}
|
2008-07-29 19:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
delete in;
|
|
|
|
|
|
|
|
return saveList;
|
|
|
|
}
|
|
|
|
|
2008-11-09 16:13:34 +00:00
|
|
|
int CineMetaEngine::getMaximumSaveSlot() const { return 9; }
|
|
|
|
|
2008-11-12 23:39:38 +00:00
|
|
|
void CineMetaEngine::removeSaveState(const char *target, int slot) const {
|
|
|
|
// Load savegame descriptions from index file
|
|
|
|
typedef char CommandeType[20];
|
|
|
|
CommandeType saveNames[10];
|
|
|
|
|
2009-08-03 17:52:07 +00:00
|
|
|
// Initialize all savegames' descriptions to empty strings
|
|
|
|
// so that if the savegames' descriptions can only be partially read from file
|
|
|
|
// then the missing ones are correctly set to empty strings.
|
|
|
|
memset(saveNames, 0, sizeof(saveNames));
|
|
|
|
|
2008-11-12 23:39:38 +00:00
|
|
|
Common::InSaveFile *in;
|
|
|
|
char tmp[80];
|
|
|
|
|
|
|
|
snprintf(tmp, 80, "%s.dir", target);
|
|
|
|
in = g_system->getSavefileManager()->openForLoading(tmp);
|
|
|
|
|
|
|
|
if (!in)
|
|
|
|
return;
|
|
|
|
|
|
|
|
in->read(saveNames, 10 * 20);
|
|
|
|
delete in;
|
|
|
|
|
|
|
|
// Set description for selected slot
|
|
|
|
char slotName[20];
|
|
|
|
slotName[0] = 0;
|
|
|
|
strncpy(saveNames[slot], slotName, 20);
|
|
|
|
|
|
|
|
// Update savegame descriptions
|
|
|
|
char indexFile[80];
|
|
|
|
snprintf(indexFile, 80, "%s.dir", target);
|
|
|
|
|
|
|
|
Common::OutSaveFile *out = g_system->getSavefileManager()->openForSaving(indexFile);
|
|
|
|
if (!out) {
|
|
|
|
warning("Unable to open file %s for saving", indexFile);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
out->write(saveNames, 10 * 20);
|
|
|
|
delete out;
|
|
|
|
|
|
|
|
// Delete save file
|
|
|
|
char saveFileName[256];
|
|
|
|
sprintf(saveFileName, "%s.%1d", target, slot);
|
|
|
|
|
|
|
|
g_system->getSavefileManager()->removeSavefile(saveFileName);
|
|
|
|
}
|
|
|
|
|
2008-05-06 03:00:26 +00:00
|
|
|
#if PLUGIN_ENABLED_DYNAMIC(CINE)
|
|
|
|
REGISTER_PLUGIN_DYNAMIC(CINE, PLUGIN_TYPE_ENGINE, CineMetaEngine);
|
|
|
|
#else
|
|
|
|
REGISTER_PLUGIN_STATIC(CINE, PLUGIN_TYPE_ENGINE, CineMetaEngine);
|
|
|
|
#endif
|
2008-11-12 23:21:05 +00:00
|
|
|
|
|
|
|
namespace Cine {
|
|
|
|
|
|
|
|
Common::Error CineEngine::loadGameState(int slot) {
|
|
|
|
char saveNameBuffer[256];
|
|
|
|
sprintf(saveNameBuffer, "%s.%1d", _targetName.c_str(), slot);
|
|
|
|
bool gameLoaded = makeLoad(saveNameBuffer);
|
|
|
|
|
|
|
|
return gameLoaded ? Common::kNoError : Common::kUnknownError;
|
|
|
|
}
|
|
|
|
|
|
|
|
Common::Error CineEngine::saveGameState(int slot, const char *desc) {
|
|
|
|
// Load savegame descriptions from index file
|
|
|
|
loadSaveDirectory();
|
|
|
|
|
2009-08-03 17:52:07 +00:00
|
|
|
// Set description for selected slot making sure it ends with a trailing zero
|
2008-11-12 23:21:05 +00:00
|
|
|
strncpy(currentSaveName[slot], desc, 20);
|
2009-08-03 17:52:07 +00:00
|
|
|
currentSaveName[slot][sizeof(CommandeType) - 1] = 0;
|
2008-11-12 23:21:05 +00:00
|
|
|
|
|
|
|
// Update savegame descriptions
|
|
|
|
char indexFile[80];
|
|
|
|
snprintf(indexFile, 80, "%s.dir", _targetName.c_str());
|
|
|
|
|
|
|
|
Common::OutSaveFile *fHandle = g_saveFileMan->openForSaving(indexFile);
|
|
|
|
if (!fHandle) {
|
|
|
|
warning("Unable to open file %s for saving", indexFile);
|
|
|
|
return Common::kUnknownError;
|
|
|
|
}
|
|
|
|
|
|
|
|
fHandle->write(currentSaveName, 10 * 20);
|
|
|
|
delete fHandle;
|
|
|
|
|
|
|
|
// Save game
|
|
|
|
char saveFileName[256];
|
|
|
|
sprintf(saveFileName, "%s.%1d", _targetName.c_str(), slot);
|
|
|
|
makeSave(saveFileName);
|
|
|
|
|
|
|
|
checkDataDisk(-1);
|
|
|
|
|
|
|
|
return Common::kNoError;
|
|
|
|
}
|
|
|
|
|
2009-01-01 15:06:43 +00:00
|
|
|
bool CineEngine::canLoadGameStateCurrently() {
|
2008-11-12 23:21:05 +00:00
|
|
|
return (!disableSystemMenu && !inMenu);
|
|
|
|
}
|
|
|
|
|
2009-01-01 15:06:43 +00:00
|
|
|
bool CineEngine::canSaveGameStateCurrently() {
|
2008-11-12 23:21:05 +00:00
|
|
|
return (allowPlayerInput && !disableSystemMenu && !inMenu);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // End of namespace Cine
|