scummvm/engines/private/detection.cpp

93 lines
2.3 KiB
C++
Raw Normal View History

2020-12-24 16:10:32 -03:00
#include "base/plugins.h"
#include "engines/advancedDetector.h"
namespace Private {
static const PlainGameDescriptor privateGames[] = {
{ "private-eye", "Private Eye" },
{ 0, 0 }
2020-12-24 16:10:32 -03:00
};
static const ADGameDescription gameDescriptions[] = {
{
"private-eye", // US release
0,
AD_ENTRY1s("ASSETS.Z", "3a7532349cda8126e96dd5e49884af3a", 40232),
Common::EN_USA,
Common::kPlatformWindows,
ADGF_NO_FLAGS,
GUIO1(GUIO_NOMIDI)
},
{
"private-eye", // EU release
0,
AD_ENTRY1s("ASSETS.Z", "73874f969026d6fd21a4e9834ce4a1a7", 17695),
Common::EN_GRB,
Common::kPlatformWindows,
ADGF_UNSUPPORTED,
GUIO1(GUIO_NOMIDI)
},
2021-01-09 16:11:30 -03:00
{
2021-01-14 18:48:30 -03:00
"private-eye", // Demo from archive.org
"Demo",
AD_ENTRY1s("ASSETS.Z", "854e141bb67535359620a1833fcc1566", 5955),
Common::EN_USA,
2021-01-14 18:48:30 -03:00
Common::kPlatformWindows,
ADGF_DEMO,
GUIO1(GUIO_NOMIDI)
},
{
"private-eye", // Demo from the US release
2021-01-14 18:48:30 -03:00
"Demo",
AD_ENTRY1s("ASSETS.Z", "045766e39f44d6ee3bf92f0d4521587c", 5961),
Common::EN_USA,
2021-01-09 16:11:30 -03:00
Common::kPlatformWindows,
ADGF_DEMO,
GUIO1(GUIO_NOMIDI)
},
2021-01-09 19:11:41 -03:00
2021-02-07 17:36:09 -03:00
{
"private-eye", // Demo from the EU release
"Demo",
AD_ENTRY1s("ASSETS.Z", "15e10e8fbb1e9aac4d32c5d8215e7c86", 2299),
Common::EN_GRB,
Common::kPlatformWindows,
ADGF_DEMO | ADGF_UNSUPPORTED,
GUIO1(GUIO_NOMIDI)
},
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-01-10 20:17:27 -03:00
"SUPPORT",
0
2020-12-27 22:11:21 -03:00
};
2020-12-24 16:10:32 -03:00
class PrivateMetaEngineDetection : public AdvancedMetaEngineDetection {
public:
PrivateMetaEngineDetection() : AdvancedMetaEngineDetection(Private::gameDescriptions, sizeof(ADGameDescription), Private::privateGames) {
_maxScanDepth = 2;
_directoryGlobs = directoryGlobs;
}
const char *getEngineId() const override {
return "private";
}
const char *getName() const override {
return "Private Eye";
}
const char *getOriginalCopyright() const override {
return "Copyright (C) Brooklyn Multimedia";
}
2020-12-24 16:10:32 -03:00
};
REGISTER_PLUGIN_STATIC(PRIVATE_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, PrivateMetaEngineDetection);