diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-08 17:11:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 17:11:34 -0400 |
commit | 85d99f873fefe9c66b44482b24c2139dd6cec247 (patch) | |
tree | c6ef0151ae64518fc0b5a558a47ec8ca28540e14 /src/yuzu/game_list.h | |
parent | bd42bba71c09010c63853867c4d80573888bff81 (diff) | |
parent | 667ec286970560d3a5b12b987010082657aec7c3 (diff) |
Merge pull request #10519 from mdmrk/master
yuzu-qt: Track play time
Diffstat (limited to 'src/yuzu/game_list.h')
-rw-r--r-- | src/yuzu/game_list.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h index 1fcbbf0ba..712570cea 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; @@ -75,11 +76,13 @@ public: COLUMN_ADD_ONS, COLUMN_FILE_TYPE, COLUMN_SIZE, + COLUMN_PLAY_TIME, COLUMN_COUNT, // Number of columns }; explicit GameList(std::shared_ptr<FileSys::VfsFilesystem> vfs_, - FileSys::ManualContentProvider* provider_, Core::System& system_, + FileSys::ManualContentProvider* provider_, + PlayTime::PlayTimeManager& play_time_manager_, Core::System& system_, GMainWindow* parent = nullptr); ~GameList() override; @@ -113,6 +116,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 VerifyIntegrityRequested(const std::string& game_path); void CopyTIDRequested(u64 program_id); @@ -168,6 +172,7 @@ private: friend class GameListSearchField; + const PlayTime::PlayTimeManager& play_time_manager; Core::System& system; }; |