mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
BASE: Formatting code
This commit is contained in:
parent
598407a425
commit
d65f2b3821
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user