Fix order of checks in hleDoLog, minor perf improvement

This commit is contained in:
Henrik Rydgård committed 2025-11-04 13:35:45 +01:00
1 parent 607451fe6a
commit c14129eb57
3 files changed
+9 -12

No files matched your search

+3 -7
View File
@@ -1149,10 +1149,6 @@ bool Config::LoadAppendedConfig() {
return true;
}
void Config::SetAppendedConfigIni(const Path &path) {
appendedConfigFileName_ = path;
}
void Config::UpdateAfterSettingAutoFrameSkip() {
if (bAutoFrameSkip && iFrameSkip == 0) {
iFrameSkip = 1;
@@ -1848,11 +1844,11 @@ bool PlayTimeTracker::GetPlayedTimeString(const std::string &gameId, std::string
}
int totalSeconds = iter->second.totalTimePlayed;
int seconds = totalSeconds % 60;
const int seconds = totalSeconds % 60;
totalSeconds /= 60;
int minutes = totalSeconds % 60;
const int minutes = totalSeconds % 60;
totalSeconds /= 60;
int hours = totalSeconds;
const int hours = totalSeconds;
*str = ApplySafeSubstitutions(ga->T("Time Played: %1h %2m %3s"), hours, minutes, seconds);
return true;