yuzu-qt: Track play time

This commit is contained in:
Mario
2023-08-26 21:19:00 -04:00
committed by Liam
parent 6c4abd23be
commit 5464423667
15 changed files with 334 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "yuzu/game_list.h"
#include "yuzu/game_list_p.h"
#include "yuzu/game_list_worker.h"
#include "yuzu/play_time.h"
#include "yuzu/uisettings.h"
namespace {
@ -212,6 +213,7 @@ QList<QStandardItem*> MakeGameListEntry(const std::string& path, const std::stri
new GameListItemCompat(compatibility),
new GameListItem(file_type_string),
new GameListItemSize(size),
new GameListItemPlayTime(PlayTime::GetPlayTime(program_id)),
};
const auto patch_versions = GetGameListCachedObject(