Skip to content

Commit

Permalink
CMD: Print full path information for --detect
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiatesan authored and criezy committed Aug 6, 2017
1 parent 544a18b commit 78253e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions base/commandLine.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 78253e3

Please sign in to comment.