Skip to content

Commit

Permalink
M4: Allow Riddle to be run using the original directory structure
Browse files Browse the repository at this point in the history
Not that the game starts up or anything :P
  • Loading branch information
Matthew Hoops committed May 7, 2011
1 parent 99da647 commit daa2732
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions engines/m4/detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions engines/m4/m4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit daa2732

Please sign in to comment.