[Scummvm-git-logs] scummvm master -> 0f159b25693bd8182ac2f01cd6cb196d70d7888a
criezy
noreply at scummvm.org
Wed Jun 14 23:16:06 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0f159b2569 BASE: Slightly change the formatting of the --stats command output
Commit: 0f159b25693bd8182ac2f01cd6cb196d70d7888a
https://github.com/scummvm/scummvm/commit/0f159b25693bd8182ac2f01cd6cb196d70d7888a
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2023-06-15T00:04:11+01:00
Commit Message:
BASE: Slightly change the formatting of the --stats command output
Changed paths:
base/commandLine.cpp
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 7019255c048..2f284d5322d 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -1121,9 +1121,8 @@ static void printStatistics(const Common::String &engineID) {
engines = tokenizer.split();
}
- if (!summary)
- printf("Engine ID Number of games Game variants Added targets\n"
- "--------------- ---------------- ---------------- ----------------\n");
+ printf("Engines Games Variants Added targets\n"
+ "--------------- ------------- ------------- -------------\n");
int targetCount = 0;
Common::HashMap<Common::String, int> engineTargetCount;
@@ -1168,18 +1167,19 @@ static void printStatistics(const Common::String &engineID) {
if (engineIter != engineTargetCount.end())
targets = engineIter->_value;
if (variants != -1)
- printf("%-15s %16d %16d %16d\n", metaEngine.getName(), list.size(), variants, targets);
+ printf("%-15s %13d %13d %13d\n", metaEngine.getName(), list.size(), variants, targets);
else
- printf("%-15s %16d %16s %16d\n", metaEngine.getName(), list.size(), "?", targets);
+ printf("%-15s %13d %13s %13d\n", metaEngine.getName(), list.size(), "?", targets);
}
}
}
if (engines.size() != 1) {
- printf("--------------- ---------------- ---------------- ----------------\n");
+ if (!summary)
+ printf("--------------- ------------- ------------- -------------\n");
if (approximation)
- printf("Engines: %6d Games: %9d Variants: %5d+ Targets: %7d\n", engineCount, gameCount, variantCount, targetCount);
+ printf("%15d %13d %12d+ %13d\n", engineCount, gameCount, variantCount, targetCount);
else
- printf("Engines: %6d Games: %9d Variants: %6d Targets: %7d\n", engineCount, gameCount, variantCount, targetCount);
+ printf("%15d %13d %13d %13d\n", engineCount, gameCount, variantCount, targetCount);
}
}
More information about the Scummvm-git-logs
mailing list