aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorTobia Tesan2017-08-05 15:55:45 +0200
committerThierry Crozat2017-08-06 19:14:13 +0100
commit78253e38d1f22b9798c23a23d4a411d533bf4eb8 (patch)
tree42f5a010f7eb539e142876c67a6d837f8c6aa570 /base
parent544a18bba2d1510f35f42e8cd7bce91f54972c5a (diff)
downloadscummvm-rg350-78253e38d1f22b9798c23a23d4a411d533bf4eb8.tar.gz
scummvm-rg350-78253e38d1f22b9798c23a23d4a411d533bf4eb8.tar.bz2
scummvm-rg350-78253e38d1f22b9798c23a23d4a411d533bf4eb8.zip
CMD: Print full path information for --detect
Diffstat (limited to 'base')
-rw-r--r--base/commandLine.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index fd25b3377f..475c917bdb 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -884,12 +884,11 @@ static Common::String detectGames(Common::String path, Common::String recursiveO
}
return Common::String();
}
-
- // Print all the candidate found
- printf("ID Description\n");
- printf("-------------------- ---------------------------------------------------------\n");
+ // TODO this is not especially pretty
+ printf("ID Description Full Path\n");
+ printf("-------------- ---------------------------------------------------------- ---------------------------------------------------------\n");
for (GameList::iterator v = candidates.begin(); v != candidates.end(); ++v) {
- printf("%-20s %s\n", v->gameid().c_str(), v->description().c_str());
+ printf("%-14s %-58s %s\n", v->gameid().c_str(), v->description().c_str(), (*v)["path"].c_str());
}
return candidates[0].gameid();