M4: Allow Riddle to be run using the original directory structure

Not that the game starts up or anything :P
This commit is contained in:
Matthew Hoops 2011-05-06 23:09:53 -04:00
parent 99da647e8f
commit daa2732bee
2 changed files with 9 additions and 3 deletions

View File

@ -380,7 +380,12 @@ static const M4GameDescription gameDescriptions[] = {
{ AD_TABLE_END_MARKER, 0, 0 }
};
}
} // End of namespace M4
static const char *directoryGlobs[] = {
"option1",
0
};
static const ADParams detectionParams = {
// Pointer to ADGameDescription or its superset structure
@ -402,9 +407,9 @@ static const ADParams detectionParams = {
// Additional GUI options (for every game}
Common::GUIO_NOMIDI,
// Maximum directory depth
1,
2,
// List of directory globs
0
directoryGlobs
};
class M4MetaEngine : public AdvancedMetaEngine {

View File

@ -115,6 +115,7 @@ MadsM4Engine::MadsM4Engine(OSystem *syst, const M4GameDescription *gameDesc) :
SearchMan.addSubDirectoryMatching(gameDataDir, "goodstuf");
SearchMan.addSubDirectoryMatching(gameDataDir, "resource");
SearchMan.addSubDirectoryMatching(gameDataDir, "option1");
DebugMan.addDebugChannel(kDebugScript, "script", "Script debug level");
DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics debug level");