Skip to content

Commit

Permalink
BASE: Formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
iskrich authored and criezy committed Oct 29, 2016
1 parent 598407a commit d65f2b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions base/commandLine.cpp
Expand Up @@ -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" );
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d65f2b3

Please sign in to comment.