diff options
author | Nicola Mettifogo | 2008-09-08 14:38:07 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-09-08 14:38:07 +0000 |
commit | fbc62e56fa1feda9f0c69b91a6e8f4dc6467ff54 (patch) | |
tree | fea10f147273e33f9e59444aa5746e70d3cb1ec9 | |
parent | 655bb0b1658387299856ef980d4511327abdb5f1 (diff) | |
download | scummvm-rg350-fbc62e56fa1feda9f0c69b91a6e8f4dc6467ff54.tar.gz scummvm-rg350-fbc62e56fa1feda9f0c69b91a6e8f4dc6467ff54.tar.bz2 scummvm-rg350-fbc62e56fa1feda9f0c69b91a6e8f4dc6467ff54.zip |
Made searching the game path recursive (with the default depth of 4 levels). This is a temporary fix to make some games work, until we decide what to do with the file/directory searching.
svn-id: r34450
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp index 822df125b8..4cb7751a4f 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -156,7 +156,7 @@ static int runGame(const EnginePlugin *plugin, OSystem &system, const Common::St } // Add the game path to the directory search list - Common::File::addDefaultDirectory(path); + Common::File::addDefaultDirectoryRecursive(path); // Add extrapath (if any) to the directory search list if (ConfMan.hasKey("extrapath")) @@ -285,12 +285,12 @@ extern "C" int scummvm_main(int argc, char *argv[]) { // Try to run the game int result = runGame(plugin, system, specialDebug); - + // Did an error occur ? if (result != 0) { // TODO: Show an informative error dialog if starting the selected game failed. } - + // Quit unless an error occurred, or Return to launcher was requested if (result == 0 && !g_system->getEventManager()->shouldRTL()) break; |