mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added a game counter log output on application startup.
This commit is contained in:
parent
e248299fb4
commit
9683295c10
|
@ -464,6 +464,7 @@ bool SystemData::loadConfig()
|
|||
const bool splashScreen {Settings::getInstance()->getBool("SplashScreen")};
|
||||
float systemCount {0.0f};
|
||||
float parsedSystems {0.0f};
|
||||
unsigned int gameCount {0};
|
||||
|
||||
// This is only done to get the total system count, for calculating the progress bar position.
|
||||
for (auto& configPath : configPaths) {
|
||||
|
@ -775,6 +776,7 @@ bool SystemData::loadConfig()
|
|||
}
|
||||
else {
|
||||
sSystemVector.emplace_back(newSys);
|
||||
gameCount += newSys->getRootFolder()->getGameCount().first;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -790,6 +792,7 @@ bool SystemData::loadConfig()
|
|||
<< (systemCount == 1 ? ", loaded " : "s, loaded ") << sSystemVector.size()
|
||||
<< " system" << (sSystemVector.size() == 1 ? "" : "s")
|
||||
<< " (collections not included)";
|
||||
LOG(LogInfo) << "Total game count: " << gameCount;
|
||||
|
||||
// Sort systems by sortName, which will normally be the same as the full name.
|
||||
std::sort(std::begin(sSystemVector), std::end(sSystemVector), [](SystemData* a, SystemData* b) {
|
||||
|
|
Loading…
Reference in a new issue