From 5464423667dedc0f09d48f85fc7871a3e56127a4 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 26 Aug 2023 21:19:00 -0400 Subject: yuzu-qt: Track play time --- src/yuzu/game_list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/yuzu/game_list.h') diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h index 6c2f75e53..cde6f1e1f 100644 --- a/src/yuzu/game_list.h +++ b/src/yuzu/game_list.h @@ -74,6 +74,7 @@ public: COLUMN_ADD_ONS, COLUMN_FILE_TYPE, COLUMN_SIZE, + COLUMN_PLAY_TIME, COLUMN_COUNT, // Number of columns }; @@ -112,6 +113,7 @@ signals: void RemoveInstalledEntryRequested(u64 program_id, InstalledEntryType type); void RemoveFileRequested(u64 program_id, GameListRemoveTarget target, const std::string& game_path); + void RemovePlayTimeRequested(u64 program_id); void DumpRomFSRequested(u64 program_id, const std::string& game_path, DumpRomFSTarget target); void CopyTIDRequested(u64 program_id); void CreateShortcut(u64 program_id, const std::string& game_path, -- cgit v1.2.3 From 667ec286970560d3a5b12b987010082657aec7c3 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 27 Aug 2023 18:41:42 -0400 Subject: Address review comments --- src/yuzu/game_list.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/yuzu/game_list.h') diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h index cde6f1e1f..6e8382c0f 100644 --- a/src/yuzu/game_list.h +++ b/src/yuzu/game_list.h @@ -18,6 +18,7 @@ #include "core/core.h" #include "uisettings.h" #include "yuzu/compatibility_list.h" +#include "yuzu/play_time_manager.h" namespace Core { class System; @@ -79,7 +80,8 @@ public: }; explicit GameList(std::shared_ptr vfs_, - FileSys::ManualContentProvider* provider_, Core::System& system_, + FileSys::ManualContentProvider* provider_, + PlayTime::PlayTimeManager& play_time_manager_, Core::System& system_, GMainWindow* parent = nullptr); ~GameList() override; @@ -168,6 +170,7 @@ private: friend class GameListSearchField; + const PlayTime::PlayTimeManager& play_time_manager; Core::System& system; }; -- cgit v1.2.3