From 9683295c107b2d4c482a99ccec3c1782d38cf03e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 21 Feb 2023 18:48:06 +0100 Subject: [PATCH] Added a game counter log output on application startup. --- es-app/src/SystemData.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index 8d598770d..9963a10c3 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -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) {