From 78253e38d1f22b9798c23a23d4a411d533bf4eb8 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Sat, 5 Aug 2017 15:55:45 +0200 Subject: [PATCH] CMD: Print full path information for --detect --- base/commandLine.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/base/commandLine.cpp b/base/commandLine.cpp index fd25b3377fb6..475c917bdb4d 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();