CMD: Print full path information for --detect

This commit is contained in:
Tobia Tesan 2017-08-05 15:55:45 +02:00 committed by Thierry Crozat
parent 544a18bba2
commit 78253e38d1

View file

@ -884,12 +884,11 @@ static Common::String detectGames(Common::String path, Common::String recursiveO
} }
return Common::String(); return Common::String();
} }
// TODO this is not especially pretty
// Print all the candidate found printf("ID Description Full Path\n");
printf("ID Description\n"); printf("-------------- ---------------------------------------------------------- ---------------------------------------------------------\n");
printf("-------------------- ---------------------------------------------------------\n");
for (GameList::iterator v = candidates.begin(); v != candidates.end(); ++v) { 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(); return candidates[0].gameid();