Qt: Add option to reset played time

This commit is contained in:
Connor McLaughlin
2023-01-11 20:21:27 +10:00
parent 50a616421f
commit 7c6071dfe1
6 changed files with 52 additions and 8 deletions

View File

@@ -81,6 +81,7 @@ void Refresh(bool invalidate_cache, bool only_cache = false, ProgressCallback* p
/// Add played time for the specified serial.
void AddPlayedTimeForSerial(const std::string& serial, std::time_t last_time, std::time_t add_time);
void ClearPlayedTimeForSerial(const std::string& serial);
/// Returns the total time played for a game. Requires the game to be scanned in the list.
std::time_t GetCachedPlayedTimeForSerial(const std::string& serial);