diff options
author | iskrich | 2016-03-19 20:56:08 +0300 |
---|---|---|
committer | Thierry Crozat | 2016-10-29 17:56:47 +0100 |
commit | d65f2b38213c0dd3f60f3c3ab1290d111ad8efb3 (patch) | |
tree | ee3c89901b228772cafb2b5debddded1767b3f5a /base | |
parent | 598407a42516fde44df8d3e5f9fac2f1800b1983 (diff) | |
download | scummvm-rg350-d65f2b38213c0dd3f60f3c3ab1290d111ad8efb3.tar.gz scummvm-rg350-d65f2b38213c0dd3f60f3c3ab1290d111ad8efb3.tar.bz2 scummvm-rg350-d65f2b38213c0dd3f60f3c3ab1290d111ad8efb3.zip |
BASE: Formatting code
Diffstat (limited to 'base')
-rw-r--r-- | base/commandLine.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 57a5893db0..474a085f66 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -776,12 +776,16 @@ static void listAudioDevices() { } /** Display all games in current directory */ -static void autoDetect(){ +static void autoDetect() { + //Current directory Common::FSNode dir("."); + Common::FSList files; + //Collect all files from directory dir.getChildren(files, Common::FSNode::kListAll); + GameList candidates(EngineMan.detectGames(files)); if (candidates.empty()) { printf("%s\n","ScummVM could not find any game in the current directory" ); @@ -1019,7 +1023,7 @@ bool processSettings(Common::String &command, Common::StringMap &settings, Commo } else if (command == "help") { printf(HELP_STRING, s_appName); return true; - } else if (command == "auto-detect"){ + } else if (command == "auto-detect") { autoDetect(); return true; } |