aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2018-06-30 22:12:28 +0200
committerBastien Bouclet2019-11-03 11:43:00 +0100
commit3c0abc080075adfc2d752a006654c8168b8c43ab (patch)
treea65bf7dbce4b5741c1cdef1d1da2ee44958d779d
parent8ba2d22407a43a6fd7717df5878ec87bfe04e077 (diff)
downloadscummvm-rg350-3c0abc080075adfc2d752a006654c8168b8c43ab.tar.gz
scummvm-rg350-3c0abc080075adfc2d752a006654c8168b8c43ab.tar.bz2
scummvm-rg350-3c0abc080075adfc2d752a006654c8168b8c43ab.zip
BASE: Remove the engines/games alphabetical sort
-rw-r--r--base/commandLine.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index bcc4304d83..a0058e166a 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -763,22 +763,15 @@ static void listGames() {
printf("Game ID Full Title \n"
"------------------------------ -----------------------------------------------------------\n");
- Common::Array<Common::String> games;
-
const PluginList &plugins = EngineMan.getPlugins();
for (PluginList::const_iterator iter = plugins.begin(); iter != plugins.end(); ++iter) {
const MetaEngine &metaengine = (*iter)->get<MetaEngine>();
PlainGameList list = metaengine.getSupportedGames();
for (PlainGameList::const_iterator v = list.begin(); v != list.end(); ++v) {
- games.push_back(Common::String::format("%-30s %s", buildQualifiedGameName(metaengine.getEngineId(), v->gameId).c_str(), v->description));
+ printf("%-30s %s\n", buildQualifiedGameName(metaengine.getEngineId(), v->gameId).c_str(), v->description);
}
}
-
- Common::sort(games.begin(), games.end());
-
- for (Common::Array<Common::String>::const_iterator i = games.begin(), end = games.end(); i != end; ++i)
- printf("%s\n", i->c_str());
}
/** List all supported engines, i.e. all loaded plugins. */
@@ -786,18 +779,11 @@ static void listEngines() {
printf("Engine ID Engine Name \n"
"--------------- ------------------------------------------------------\n");
- Common::Array<Common::String> engines;
-
const PluginList &plugins = EngineMan.getPlugins();
for (PluginList::const_iterator iter = plugins.begin(); iter != plugins.end(); ++iter) {
const MetaEngine &metaEngine = (*iter)->get<MetaEngine>();
- engines.push_back(Common::String::format("%-15s %s", metaEngine.getEngineId(), metaEngine.getName()));
+ printf("%-15s %s\n", metaEngine.getEngineId(), metaEngine.getName());
}
-
- Common::sort(engines.begin(), engines.end());
-
- for (Common::Array<Common::String>::const_iterator i = engines.begin(), end = engines.end(); i != end; ++i)
- printf("%s\n", i->c_str());
}
/** List all targets which are configured in the config file. */