SCI: Switch to alternate AdvancedMetaEngine, avoid ADParams
This commit is contained in:
parent
6fb0d6e8e9
commit
b99d76acdb
1 changed files with 3 additions and 27 deletions
|
@ -371,35 +371,11 @@ static ADGameDescription s_fallbackDesc = {
|
|||
|
||||
static char s_fallbackGameIdBuf[256];
|
||||
|
||||
|
||||
static const ADParams detectionParams = {
|
||||
// Pointer to ADGameDescription or its superset structure
|
||||
(const byte *)Sci::SciGameDescriptions,
|
||||
// Size of that superset structure
|
||||
sizeof(ADGameDescription),
|
||||
// Number of bytes to compute MD5 sum for
|
||||
5000,
|
||||
// List of all engine gameid
|
||||
s_sciGameTitles,
|
||||
// Structure for autoupgrading obsolete gameids
|
||||
0,
|
||||
// Name of single gameid (optional)
|
||||
"sci",
|
||||
// List of files for file-based fallback detection (optional)
|
||||
0,
|
||||
// Flags
|
||||
0,
|
||||
// Additional GUI options (for every game}
|
||||
Common::GUIO_NONE,
|
||||
// Maximum directory depth
|
||||
1,
|
||||
// List of directory globs
|
||||
0
|
||||
};
|
||||
|
||||
class SciMetaEngine : public AdvancedMetaEngine {
|
||||
public:
|
||||
SciMetaEngine() : AdvancedMetaEngine(detectionParams) {}
|
||||
SciMetaEngine() : AdvancedMetaEngine(Sci::SciGameDescriptions, sizeof(ADGameDescription), s_sciGameTitles) {
|
||||
params.singleid = "sci";
|
||||
}
|
||||
|
||||
virtual const char *getName() const {
|
||||
return "SCI [SCI0, SCI01, SCI10, SCI11"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue