diff options
author | MerryMage <MerryMage@users.noreply.github.com> | 2016-12-15 10:55:03 +0100 |
---|---|---|
committer | MerryMage <MerryMage@users.noreply.github.com> | 2016-12-15 19:43:10 +0100 |
commit | f50dcc88bf160100336c94673aa7679403405cdd (patch) | |
tree | 14e2f9682f5f58568eff94b42711b7b80e986e91 /src/citra_qt/game_list_p.h | |
parent | loader: Implement ReadProgramId (diff) | |
download | yuzu-f50dcc88bf160100336c94673aa7679403405cdd.tar yuzu-f50dcc88bf160100336c94673aa7679403405cdd.tar.gz yuzu-f50dcc88bf160100336c94673aa7679403405cdd.tar.bz2 yuzu-f50dcc88bf160100336c94673aa7679403405cdd.tar.lz yuzu-f50dcc88bf160100336c94673aa7679403405cdd.tar.xz yuzu-f50dcc88bf160100336c94673aa7679403405cdd.tar.zst yuzu-f50dcc88bf160100336c94673aa7679403405cdd.zip |
Diffstat (limited to 'src/citra_qt/game_list_p.h')
-rw-r--r-- | src/citra_qt/game_list_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.h index 5ca3fe991..a15f06c5f 100644 --- a/src/citra_qt/game_list_p.h +++ b/src/citra_qt/game_list_p.h @@ -71,10 +71,13 @@ class GameListItemPath : public GameListItem { public: static const int FullPathRole = Qt::UserRole + 1; static const int TitleRole = Qt::UserRole + 2; + static const int ProgramIdRole = Qt::UserRole + 3; GameListItemPath() : GameListItem() {} - GameListItemPath(const QString& game_path, const std::vector<u8>& smdh_data) : GameListItem() { + GameListItemPath(const QString& game_path, const std::vector<u8>& smdh_data, u64 program_id) + : GameListItem() { setData(game_path, FullPathRole); + setData(qulonglong(program_id), ProgramIdRole); if (!Loader::IsValidSMDH(smdh_data)) { // SMDH is not valid, set a default icon |