2021-02-13 14:55:30 -03: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 18:47:58 +01: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.
|
2021-02-13 14:55:30 -03: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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2021-02-13 14:55:30 -03:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-12-24 16:10:32 -03:00
|
|
|
#include "base/plugins.h"
|
2021-06-21 23:01:44 +02:00
|
|
|
#include "common/translation.h"
|
2020-12-24 16:10:32 -03:00
|
|
|
#include "engines/advancedDetector.h"
|
2021-05-16 20:10:13 +08:00
|
|
|
#include "private/private.h"
|
|
|
|
|
|
|
|
static const DebugChannelDef debugFlagList[] = {
|
|
|
|
{Private::kPrivateDebugFunction, "functions", "Function execution debug channel"},
|
|
|
|
{Private::kPrivateDebugCode, "code", "Code execution debug channel"},
|
|
|
|
{Private::kPrivateDebugScript, "script", "Script execution debug channel"},
|
|
|
|
DEBUG_CHANNEL_END
|
|
|
|
};
|
2020-12-24 16:10:32 -03:00
|
|
|
|
|
|
|
namespace Private {
|
|
|
|
static const PlainGameDescriptor privateGames[] = {
|
2021-03-05 19:27:58 +01:00
|
|
|
{ "private-eye", "Private Eye" },
|
2021-11-13 23:40:37 +02:00
|
|
|
{ nullptr, nullptr }
|
2020-12-24 16:10:32 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
static const ADGameDescription gameDescriptions[] = {
|
2021-03-05 19:27:58 +01:00
|
|
|
{
|
|
|
|
"private-eye", // US release
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-03-05 19:27:58 +01:00
|
|
|
AD_ENTRY2s("pvteye.z", "b682118cda6a42fa89833cae2b8824bd", 271895,
|
2021-06-21 22:22:56 +02:00
|
|
|
"intro.smk", "270a1d0a29df122fc3d1d38e655161a7", 7310984),
|
2021-03-05 19:27:58 +01:00
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_NO_FLAGS,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
2021-09-11 13:24:24 -04:00
|
|
|
"private-eye", // Demo from the US release v1.0.0.23
|
2021-03-05 19:27:58 +01:00
|
|
|
"Demo",
|
|
|
|
AD_ENTRY2s("pvteye.z", "af383c813157810e89d8d6d595895ff7", 263893,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_DEMO,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
2021-06-06 18:41:44 +02:00
|
|
|
"private-eye", // EU release (UK)
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-03-05 19:27:58 +01:00
|
|
|
AD_ENTRY2s("pvteye.z", "d9ce391395701615e8b5d04bc4bf7ec3", 284699,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_NO_FLAGS,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2021-06-20 14:12:11 +02:00
|
|
|
},
|
2021-03-05 19:27:58 +01:00
|
|
|
{
|
|
|
|
"private-eye", // Demo from the EU release
|
|
|
|
"Demo",
|
|
|
|
AD_ENTRY2s("pvteye.z", "01ca8641970189cb2ca3a96526026091", 284129,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::EN_GRB,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_DEMO,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
2021-09-11 13:24:24 -04:00
|
|
|
"private-eye", // Demo from PCGamer Disc 2.6 JULY 1996 v1.0.0.12
|
2021-03-05 19:27:58 +01:00
|
|
|
"Demo",
|
|
|
|
AD_ENTRY2s("pvteye.z", "8ef908e212bb9c1e10f5e3c81f56682c", 263893,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_DEMO,
|
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"private-eye", // Another demo
|
|
|
|
"Demo",
|
|
|
|
AD_ENTRY2s("pvteye.z", "af383c813157810e89d8d6d595895ff7", 271214,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"private-eye", // EU release (ES)
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-03-05 19:27:58 +01:00
|
|
|
AD_ENTRY2s("pvteye.ex_", "f41770550ab717086b2d0c805fef4b8f", 498176,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_NO_FLAGS,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
2021-04-20 18:53:43 -03:00
|
|
|
"private-eye", // Demo from the EU release (ES)
|
|
|
|
"Demo",
|
2021-03-05 19:27:58 +01:00
|
|
|
AD_ENTRY2s("pvtdemo.ex_", "048f751acd7a0f1a87b20d6dc5229210", 497152,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_DEMO,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"private-eye", // EU release (FR)
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-03-05 19:27:58 +01:00
|
|
|
AD_ENTRY2s("pvteye.ex_", "ae0dec43b2f54d45c8a1c93e97092141", 600576,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_NO_FLAGS,
|
2021-03-05 19:27:58 +01:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
2021-03-28 09:09:55 -03:00
|
|
|
{
|
2021-06-06 18:41:44 +02:00
|
|
|
"private-eye", // EU release (DE)
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-06-06 18:41:44 +02:00
|
|
|
AD_ENTRY2s("pvteye.ex_", "5ca171c4e8d804c7277887277d049f03", 600576,
|
2021-03-28 09:09:55 -03:00
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
2021-06-06 18:41:44 +02:00
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_NO_FLAGS,
|
2021-06-06 18:41:44 +02:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"private-eye", // Demo from the EU release (DE)
|
|
|
|
"Demo",
|
|
|
|
AD_ENTRY2s("pvtdemo.ex_", "17156cbac7d14b08f4e351ac0e16a889", 599040,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::DE_DEU,
|
2021-03-28 09:09:55 -03:00
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_DEMO,
|
2021-03-28 09:09:55 -03:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
2021-10-26 20:29:16 +02:00
|
|
|
{
|
|
|
|
"private-eye", // Demo from the EU release (FR)
|
|
|
|
"Demo",
|
|
|
|
AD_ENTRY2s("pvtdemo.ex_", "ad2156a762b3e376fda1b791a9491ea8", 599040,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
|
|
|
Common::FR_FRA,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DEMO,
|
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
2021-06-21 22:22:56 +02:00
|
|
|
{
|
|
|
|
"private-eye", // RU release
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-06-21 22:22:56 +02:00
|
|
|
AD_ENTRY2s("pvteye.z", "b682118cda6a42fa89833cae2b8824bd", 271895,
|
|
|
|
"intro.smk", "61cc13c9e4e2affd574087209df5c4a4", 7241368),
|
|
|
|
Common::RU_RUS,
|
|
|
|
Common::kPlatformWindows,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_NO_FLAGS,
|
2021-06-21 22:22:56 +02:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
2022-01-29 20:43:33 +01:00
|
|
|
{
|
|
|
|
"private-eye", // KO release
|
|
|
|
nullptr,
|
|
|
|
AD_ENTRY2s("pvteye.z", "b682118cda6a42fa89833cae2b8824bd", 271895,
|
|
|
|
"intro.smk", "288f5f61311eb10fc6861707c340c15e", 7195200),
|
|
|
|
Common::KO_KOR,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
2021-06-20 17:23:30 +02:00
|
|
|
{
|
|
|
|
"private-eye", // MacOS release (US)
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-06-22 09:59:05 +02:00
|
|
|
AD_ENTRY2s("game.mac", "33553cc04813d3f658bbe9d548377878", 81894,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
2021-06-20 17:23:30 +02:00
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformMacintosh,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_NO_FLAGS,
|
2021-06-20 17:23:30 +02:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
2021-06-21 23:01:44 +02:00
|
|
|
{
|
|
|
|
"private-eye", // MacOS release (US) uninstalled
|
|
|
|
_s("Compressed game detected. Please uncompress it as specified in the game description on our Wiki"),
|
|
|
|
AD_ENTRY1s("Private Eye Installer", "02533427ebdf26d5dd12cee8e9f4de4d", 1647309),
|
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformMacintosh,
|
|
|
|
ADGF_UNSUPPORTED,
|
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"private-eye", // MacOS demo (US)
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr,
|
2021-06-22 09:59:05 +02:00
|
|
|
AD_ENTRY2s("demogame.mac", "cfbceaa8b91f0f53c745db61d1bc9749", 6103,
|
|
|
|
"bklynlgo.bmp", "1dfb703349a46f8ec183de107992b7f5", 33118),
|
2021-06-21 23:01:44 +02:00
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformMacintosh,
|
2021-10-01 14:10:01 +03:00
|
|
|
ADGF_DEMO,
|
2021-06-21 23:01:44 +02:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"private-eye", // MacOS demo (US) uninstalled
|
|
|
|
_s("Compressed game detected. Please uncompress it as specified in the game description on our Wiki"),
|
|
|
|
AD_ENTRY1s("Private Eye Demo Installer", "e7665ddc5e6d932c4a65598ecc4ec7d2", 1626393),
|
|
|
|
Common::EN_USA,
|
|
|
|
Common::kPlatformMacintosh,
|
|
|
|
ADGF_DEMO | ADGF_UNSUPPORTED,
|
|
|
|
GUIO1(GUIO_NOMIDI)
|
|
|
|
},
|
2021-03-05 19:27:58 +01:00
|
|
|
AD_TABLE_END_MARKER
|
2020-12-24 16:10:32 -03:00
|
|
|
};
|
|
|
|
} // End of namespace Private
|
|
|
|
|
2020-12-27 22:11:21 -03:00
|
|
|
static const char *const directoryGlobs[] = {
|
2021-03-05 19:27:58 +01:00
|
|
|
"support",
|
|
|
|
"intro",
|
2021-11-13 23:40:37 +02:00
|
|
|
nullptr
|
2020-12-27 22:11:21 -03:00
|
|
|
};
|
|
|
|
|
2020-12-24 16:10:32 -03:00
|
|
|
class PrivateMetaEngineDetection : public AdvancedMetaEngineDetection {
|
|
|
|
public:
|
2021-03-05 19:27:58 +01:00
|
|
|
PrivateMetaEngineDetection() : AdvancedMetaEngineDetection(Private::gameDescriptions, sizeof(ADGameDescription), Private::privateGames) {
|
|
|
|
_maxScanDepth = 2;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
|
|
|
}
|
2021-01-07 23:38:18 -03:00
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2021-03-05 19:27:58 +01:00
|
|
|
return "private";
|
|
|
|
}
|
2021-01-07 23:38:18 -03:00
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2021-03-05 19:27:58 +01:00
|
|
|
return "Private Eye";
|
|
|
|
}
|
2021-01-07 23:38:18 -03:00
|
|
|
|
2021-03-05 19:27:58 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
|
|
|
return "Copyright (C) Brooklyn Multimedia";
|
|
|
|
}
|
2021-05-16 20:10:13 +08:00
|
|
|
|
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
2020-12-24 16:10:32 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
REGISTER_PLUGIN_STATIC(PRIVATE_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, PrivateMetaEngineDetection);
|