diff options
author | Eugene Sandulenko | 2006-04-25 23:07:59 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-04-25 23:07:59 +0000 |
commit | bf53520130bbde8a1fb85bebae487d8b489d8f42 (patch) | |
tree | 7270b20eb9fe6fd492126eb6509db6e01739022f /base | |
parent | 14beeb3492e7d46515d003399ecdbc393d3e1a0f (diff) | |
download | scummvm-rg350-bf53520130bbde8a1fb85bebae487d8b489d8f42.tar.gz scummvm-rg350-bf53520130bbde8a1fb85bebae487d8b489d8f42.tar.bz2 scummvm-rg350-bf53520130bbde8a1fb85bebae487d8b489d8f42.zip |
- Check if path specified for a game in scummvm.ini really exists and complain
if it does not
- Give more understandable feedback to user when SCUMM module can't find
a game
- Put TODO to kyra engine as their current detection scheme does not let
easily tell if game data really present in specified directory
svn-id: r22163
Diffstat (limited to 'base')
-rw-r--r-- | base/main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/base/main.cpp b/base/main.cpp index 00e5b8b49f..95457bef32 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -167,10 +167,15 @@ static bool launcherDialog(GameDetector &detector, OSystem &system) { static int runGame(const Plugin *plugin, OSystem &system, const Common::String &edebuglevels) { // We add it here, so MD5-based detection will be able to // read mixed case files - if (ConfMan.hasKey("path")) + if (ConfMan.hasKey("path")) { + if (!Common::File::exists(ConfMan.get("path"))) { + warning("Game directory does not exist (%s)", ConfMan.get("path").c_str()); + return 0; + } Common::File::addDefaultDirectory(ConfMan.get("path")); - else + } else { Common::File::addDefaultDirectory("."); + } // Create the game engine Engine *engine = plugin->createInstance(&system); |