Xbox Cloud Gaming app for PS5 Homebrew
C
Jump back in: the account's own games too, not only Game Pass
Rafael Abud Ferreiraa9f96d520d69
diff --git a/src/app/library.cpp b/src/app/library.cppindex 4d782c4..ff7fc5b 100644--- a/src/app/library.cpp+++ b/src/app/library.cpp@@ -205,6 +205,9 @@ std::vector<ui::GameRow> Library::rows() const {for (const auto& [pid, tid] : r.items) {ui::GameTile t = tile(pid, tid);if (t.productId.empty() || t.titleId.empty() || xcloud::isNonGameAddon(t.titleId, t.name)) continue;+ // "Jump back in": Game Pass games and the account's own (bought,+ // free-to-play); not one it can't start any more.+ if (r.recent && !gamePass_.empty() && !gamePass_.count(pid) && !t.playable) continue;row.tiles.push_back(std::move(t));}if (!row.tiles.empty()) rows.push_back(std::move(row));@@ -381,17 +384,17 @@ bool Library::load(xcloud::GssvClient& gssv, const std::string& language, const// The account's games from the previous run, until loadOwned() refreshes them.loadCache();- // "Jump back in": recently played Game Pass games (the others go first- // in "Your games").+ // "Jump back in": recently played games, Game Pass or the account's own+ // (rows() leaves out those it can't play; they also go first in "Your+ // games").std::vector<xcloud::Title> recent;if (gssv.listTitles(recent, lastErr, true)) {- RowIds r{ui::tr(ui::Str::JumpBackIn), false, false, {}};+ RowIds r{ui::tr(ui::Str::JumpBackIn), false, false, {}, true};std::vector<std::string> ids;for (const auto& t : recent) {if (t.productId.empty()) continue;recent_.push_back(t.productId);if (!t.xboxTitleId.empty()) xboxTitleOf_[t.productId] = t.xboxTitleId;- if (!gamePass_.empty() && !gamePass_.count(t.productId)) continue;r.items.emplace_back(t.productId, t.titleId);if (!products_.count(t.productId)) ids.push_back(t.productId);}diff --git a/src/app/library.h b/src/app/library.hindex 63ac2e9..4fc0a33 100644--- a/src/app/library.h+++ b/src/app/library.h@@ -2,10 +2,11 @@// Copyright (C) 2026 RafaelNGP// What the home screen shows, in two tabs://-// - Game Pass: "Jump back in" (recently played Game Pass games) and the Game-// Pass lists xbox.com/play shows. Only Game Pass games: xbox.com's-// "popular" list mixes in "stream your own game" titles that must be-// bought first, and those would fail to start.+// - Game Pass: "Jump back in" (recently played games the account can play,+// Game Pass or its own) and the Game Pass lists xbox.com/play shows. Only+// Game Pass games in those: xbox.com's "popular" list mixes in "stream+// your own game" titles that must be bought first, and those would fail+// to start.// - Your games: what the account can stream outside Game Pass (purchases,// free-to-play), recently played first, then alphabetical; and below it// the games that stream in the cloud once bought, most popular first.@@ -89,6 +90,7 @@ private:bool badges = true;bool isGrid = false;std::vector<Item> items;+ bool recent = false; // "Jump back in"};ui::GameTile tile(const std::string& productId, const std::string& titleId = {}) const;std::vector<ui::GameTile> tiles(const std::vector<Item>& items) const;