Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

v0.9.3: publisher filter, non-game add-on exclusion, and 120 Hz display output

Rafael Abud Ferreirac06354386aa9
diff --git a/AGENTS.md b/AGENTS.md
index 0681617..79561d2 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -67,3 +67,18 @@ Para qualquer alteração em arquivos de interface (`src/app_ui.cpp`, `src/app/a
- Inspecione `git diff` detalhadamente.
- Se houver trabalho em andamento que precise ser isolado, utilize `git stash` ou crie uma branch temporária de segurança.
- Mantenha commits atômicos, focados e com mensagens claras.
+
+---
+
+## 5. Gestão de Contexto e Uso de Subagentes
+
+Para evitar degradação de desempenho, latência alta e manter a interação ágil e leve:
+
+- **Delegação Mandatória de Tarefas Pesadas**:
+ - **Pesquisa e Varredura de Código**: Delegar para subagentes (`research` ou `self`) tarefas que envolvam ler múltiplos arquivos, buscar padrões no codebase ou analisar grandes trechos de código/documentação.
+ - **Análise de Logs Extensos**: Usar subagentes para processar ou depurar saídas longas (builds, WebRTC, traces), retornando apenas o diagnóstico e resumo executivo ao contexto principal.
+ - **Inspeção de Imagens e Testes Intermediários**: Quando houver rotinas com múltiplas validações de telas ou passos intermediários de build, priorizar subagentes para evitar inflar o histórico principal com tokens de imagens e logs.
+- **Saídas Enxutas no Contexto Principal**:
+ - Evitar despejar comandos com saídas verbosas desnecessárias (usar filtros, flags resumidas ou subagentes).
+ - O agente principal deve atuar na orquestração, decisão e interação com o usuário, preservando o contexto limpo e rápido.
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 157542c..da91931 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2026 RafaelNGP
cmake_minimum_required(VERSION 3.20)
-project(xcloud_ps5 VERSION 0.9.2 LANGUAGES C CXX)
+project(xcloud_ps5 VERSION 0.9.3 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
diff --git a/ROADMAP.md b/ROADMAP.md
index e2a3b7b..08dba51 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -150,15 +150,18 @@ is rolled back at the next start), then the app restarts itself
- Interactive stick and trigger testers accessible directly within the modal.
- "Restaurar padrão" (Reset to default) option cleanly restores global settings.
+### Publisher filter, non-game add-on exclusion and 120 Hz display declaration — done (v0.9.3)
+- Search filter by Publisher: 14 major publishers and parent groups (Xbox/Bethesda, EA, Ubisoft, Square Enix, Warner Bros, 2K, Capcom, SEGA, Bandai Namco, THQ Nordic, Focus, Devolver, Annapurna, Team17) plus Indies & Others, fully localized in all 6 languages.
+- Non-game add-ons and digital extras (artbooks, soundtracks, upgrade packs) filtered out from library, shelves, and search pools.
+- PS5 120 Hz high frame rate output declaration (`attribute3 = 524352` / `0x80040`) enabled in `param.json` for supported HDMI 2.1 displays with graceful fallback to 59.94 Hz.
+
## Next
| Item | Why | Size |
| --- | --- | --- |
-| Publisher filter | 918 publishers: the most frequent first, studios of one owner grouped | medium |
-| Friends playing now | Xbox social / presence APIs; privacy to handle | large |
-| Keyboard and mouse filter / icon | The store marks games that take them; together with keyboard and mouse support | small |
-| Voice chat (microphone) | xCloud has a chat channel; needs PS5 audio capture | large |
-| USB keyboard and mouse | Some xCloud games accept them | medium |
+| Friends playing now | Xbox social / presence APIs (`userpresence.xboxlive.com`); privacy policies | large |
+| Voice chat (microphone) | xCloud WebRTC `chatV1` channel; requires PS5 audio capture (`libSceAudioIn`) and Opus encoding | large |
+| USB keyboard & mouse + badges (v1.0+) | Some xCloud games accept native keyboard and mouse input; deferred to v1.0+ | medium |
## Dropped (and why)
diff --git a/ps5/sce_sys/param.json b/ps5/sce_sys/param.json
index 9c2e96c..be3c99c 100644
--- a/ps5/sce_sys/param.json
+++ b/ps5/sce_sys/param.json
@@ -6,11 +6,11 @@
"applicationDrmType": "free",
"attribute": 0,
"attribute2": 0,
- "attribute3": 0,
+ "attribute3": 524352,
"conceptId": "99810",
"contentBadgeType": 1,
"contentId": "UP9000-PPSA99810_00-XCLOUDPS5CLI0000",
- "contentVersion": "00.902.000",
+ "contentVersion": "00.903.000",
"downloadDataSize": 256,
"gameIntent": {
"permittedIntents": [
diff --git a/src/app/autoplay.cpp b/src/app/autoplay.cpp
index 61f684d..1d3f335 100644
--- a/src/app/autoplay.cpp
+++ b/src/app/autoplay.cpp
@@ -90,6 +90,7 @@ void loadAutoplay() {
if (opt.rfind("locktitle=", 0) == 0) g_autoplay.lockTitle = opt.substr(10);
if (opt == "gridtest") g_autoplay.gridTest = true;
if (opt == "gamesettingstest") g_autoplay.gameSettingsTest = true;
+ if (opt == "publishertest") g_autoplay.publisherTest = true;
if (opt == "norestart") g_autoplay.noRestart = true;
if (opt.rfind("threads=", 0) == 0) g_autoplay.decodeThreads = std::atoi(opt.c_str() + 8);
}
@@ -609,6 +610,25 @@ void autoplayScreens(const ui::Canvas& canvas, uint64_t now) {
XC_LOGI("AUTOPLAY END: search test");
}
}
+ if (g_autoplay.publisherTest && uiSaved) {
+ static uint64_t since = 0;
+ static int step = 0;
+ if (!since) since = now;
+ if (step == 0 && now - since > 2000) {
+ // Abre busca no Game Pass com o dropdown de editora aberto (linha 1, índice 2)
+ g_ui->showFilteredSearch(ui::Tab::GamePass, false, 0, "", 0, 2);
+ ++step;
+ } else if (step == 1 && now - since > 4000) {
+ saveCanvas("publisher_menu.ppm");
+ // Filtra por Xbox Game Studios / Bethesda (índice 1)
+ g_ui->chooseFilter(ui::AppUi::Filter::Publisher, 1);
+ ++step;
+ } else if (step == 2 && now - since > 6000) {
+ saveCanvas("publisher_results.ppm");
+ g_autoplay.publisherTest = false;
+ XC_LOGI("AUTOPLAY END: publisher test");
+ }
+ }
if (pickerShot) {
saveCanvas(pickerShot);
if (std::string(pickerShot) == "settings.ppm") XC_LOGI("AUTOPLAY END: picker test");
diff --git a/src/app/autoplay.h b/src/app/autoplay.h
index b840a36..36b26b6 100644
--- a/src/app/autoplay.h
+++ b/src/app/autoplay.h
@@ -73,6 +73,7 @@ struct Autoplay {
bool noRestart = false; // norestart: after an update, close instead of restarting
bool gridTest = false; // gridtest: navigate to All games grid, verify 2D navigation and capture screenshots
bool gameSettingsTest = false; // gamesettingstest: test details and game settings modal
+ bool publisherTest = false; // publishertest: test publisher filter dropdown and search results
};
extern Autoplay g_autoplay;
extern std::atomic<bool> g_syntheticA; // A held down for the game
diff --git a/src/app/library.cpp b/src/app/library.cpp
index cc4a6b2..889e187 100644
--- a/src/app/library.cpp
+++ b/src/app/library.cpp
@@ -187,6 +187,7 @@ std::vector<ui::GameTile> Library::tiles(const std::vector<Item>& items) const {
std::vector<ui::GameTile> out;
for (const auto& [pid, tid] : items) {
ui::GameTile t = tile(pid, tid);
+ if (xcloud::isNonGameAddon(t.titleId, t.name)) continue;
if (!t.productId.empty() && !t.titleId.empty() && !t.name.empty()) out.push_back(std::move(t));
}
dedupeByTitle(out);
@@ -202,7 +203,7 @@ std::vector<ui::GameRow> Library::rows() const {
row.isGrid = r.isGrid;
for (const auto& [pid, tid] : r.items) {
ui::GameTile t = tile(pid, tid);
- if (t.productId.empty() || t.titleId.empty()) continue;
+ if (t.productId.empty() || t.titleId.empty() || xcloud::isNonGameAddon(t.titleId, t.name)) continue;
row.tiles.push_back(std::move(t));
}
if (!row.tiles.empty()) rows.push_back(std::move(row));
@@ -262,9 +263,13 @@ bool Library::loadCache() {
for (const auto& p : (*j)["ownedProducts"].items()) ownedProducts_.insert(p.str());
for (const auto& p : (*j)["gamePass"].items()) knownGamePass_.insert(p.str());
owned_.clear();
- for (const auto& o : (*j)["owned"].items()) owned_.emplace_back(o["p"].str(), o["t"].str());
+ for (const auto& o : (*j)["owned"].items()) {
+ if (xcloud::isNonGameAddon(o["t"].str())) continue;
+ owned_.emplace_back(o["p"].str(), o["t"].str());
+ }
purchasable_.clear();
for (const auto& o : (*j)["purchasable"].items()) {
+ if (xcloud::isNonGameAddon(o["t"].str())) continue;
purchasable_.emplace_back(o["p"].str(), o["t"].str());
purchasableSet_.insert(o["p"].str());
}
@@ -456,6 +461,7 @@ void Library::loadOwned(xcloud::GssvClient gssv, const Changed& changed, const s
std::vector<Item> mine;
std::map<std::string, std::string> toBuy; // productId -> titleId
for (const auto& t : titles) {
+ if (xcloud::isNonGameAddon(t.titleId)) continue;
if (!t.productId.empty() && !t.xboxTitleId.empty()) xboxTitleOf_[t.productId] = t.xboxTitleId;
if (t.isFreeInStore && !t.productId.empty()) freeInStore_.insert(t.productId);
if (t.hasEntitlement) {
diff --git a/src/app/worker.cpp b/src/app/worker.cpp
index 53027f4..503bc2c 100644
--- a/src/app/worker.cpp
+++ b/src/app/worker.cpp
@@ -545,10 +545,11 @@ void loadLibrary(xcloud::GssvClient& gssv) {
library->loadPlatforms(xblAuth, changed, &g_stopHydration);
library->hydrate(changed, &g_stopHydration);
});
- if (!g_autoplay.title.empty() && g_autoplay.title != "BENCH" && g_autoplay.title != "UPDATE" && !g_autoplay.detailTest && !g_autoplay.libraryTest &&
+ if (!g_autoplay.title.empty() && g_autoplay.title != "BENCH" && g_autoplay.title != "UPDATE" && g_autoplay.title != "AUTOTEST" &&
+ !g_autoplay.detailTest && !g_autoplay.libraryTest &&
!g_autoplay.consolesTab && !g_autoplay.settingsTest &&
!g_autoplay.imeTest && !g_autoplay.vibeTest && !g_autoplay.searchTest && !g_autoplay.quickTest && !g_autoplay.scrollTest &&
- !g_autoplay.gridTest && !g_autoplay.gameSettingsTest) {
+ !g_autoplay.gridTest && !g_autoplay.gameSettingsTest && !g_autoplay.publisherTest) {
platform::sleepMs(6000); // leave the home screen up for ui.ppm
ui::GameTile tile;
tile.titleId = g_autoplay.title;
diff --git a/src/ui/app_ui.cpp b/src/ui/app_ui.cpp
index e08576e..9727ce0 100644
--- a/src/ui/app_ui.cpp
+++ b/src/ui/app_ui.cpp
@@ -108,6 +108,84 @@ std::string withoutSpaces(std::string s) {
return s;
}
+bool matchesPublisher(const std::string& rawPublisher, int filter) {
+ if (filter <= 0) return true;
+ std::string p = fold(rawPublisher);
+
+ auto isXbox = [&]() {
+ return p.find("xbox game studios") != std::string::npos ||
+ p.find("microsoft") != std::string::npos ||
+ p.find("bethesda") != std::string::npos ||
+ p.find("mojang") != std::string::npos ||
+ p.find("activision") != std::string::npos ||
+ p.find("blizzard") != std::string::npos ||
+ p.find("zenimax") != std::string::npos ||
+ p.find("id software") != std::string::npos ||
+ p.find("obsidian") != std::string::npos ||
+ p.find("ninja theory") != std::string::npos ||
+ p.find("double fine") != std::string::npos;
+ };
+ auto isEA = [&]() {
+ return p.find("electronic arts") != std::string::npos ||
+ p.find("ea swiss") != std::string::npos ||
+ p.find("ea sports") != std::string::npos ||
+ p == "ea" || p.find("ea ") == 0 ||
+ p.find(" ea ") != std::string::npos;
+ };
+ auto isUbisoft = [&]() { return p.find("ubisoft") != std::string::npos; };
+ auto isSquareEnix = [&]() { return p.find("square enix") != std::string::npos; };
+ auto isWarner = [&]() { return p.find("warner") != std::string::npos || p.find("wb games") != std::string::npos; };
+ auto is2K = [&]() {
+ return p.find("2k") != std::string::npos ||
+ p.find("take-two") != std::string::npos ||
+ p.find("take two") != std::string::npos ||
+ p.find("rockstar") != std::string::npos ||
+ p.find("private division") != std::string::npos;
+ };
+ auto isCapcom = [&]() { return p.find("capcom") != std::string::npos; };
+ auto isSega = [&]() { return p.find("sega") != std::string::npos || p.find("atlus") != std::string::npos; };
+ auto isBandai = [&]() {
+ return p.find("bandai namco") != std::string::npos ||
+ p.find("namco bandai") != std::string::npos ||
+ p.find("bandai") != std::string::npos;
+ };
+ auto isTHQ = [&]() {
+ return p.find("thq nordic") != std::string::npos ||
+ p.find("plaion") != std::string::npos ||
+ p.find("deep silver") != std::string::npos ||
+ p.find("koch media") != std::string::npos ||
+ p.find("handygames") != std::string::npos ||
+ p.find("embracer") != std::string::npos;
+ };
+ auto isFocus = [&]() { return p.find("focus entertainment") != std::string::npos || p.find("focus home") != std::string::npos || p == "focus"; };
+ auto isDevolver = [&]() { return p.find("devolver") != std::string::npos; };
+ auto isAnnapurna = [&]() { return p.find("annapurna") != std::string::npos; };
+ auto isTeam17 = [&]() { return p.find("team17") != std::string::npos || p.find("team 17") != std::string::npos; };
+
+ switch (filter) {
+ case 1: return isXbox();
+ case 2: return isEA();
+ case 3: return isUbisoft();
+ case 4: return isSquareEnix();
+ case 5: return isWarner();
+ case 6: return is2K();
+ case 7: return isCapcom();
+ case 8: return isSega();
+ case 9: return isBandai();
+ case 10: return isTHQ();
+ case 11: return isFocus();
+ case 12: return isDevolver();
+ case 13: return isAnnapurna();
+ case 14: return isTeam17();
+ case 15: // Indies & Outras
+ return !isXbox() && !isEA() && !isUbisoft() && !isSquareEnix() &&
+ !isWarner() && !is2K() && !isCapcom() && !isSega() &&
+ !isBandai() && !isTHQ() && !isFocus() && !isDevolver() &&
+ !isAnnapurna() && !isTeam17();
+ default: return true;
+ }
+}
+
constexpr uint64_t kSignOutHoldMs = 5000;
} // namespace
@@ -547,6 +625,7 @@ void AppUi::showFilteredSearch(Tab tab, bool cheapest, int mode, const std::stri
filterMode_ = mode;
filterGenre_ = genre;
filterLanguage_ = language;
+ filterPublisher_ = 0;
runSearch();
keyRow_ = kKeyRows + 2; // the row of lists
keyCol_ = std::max(0, openList);
@@ -658,6 +737,8 @@ void AppUi::runSearch() {
if (filterLanguage_ == 2 && !(t.languages & xcloud::kLangAudio)) continue;
if (!filterGenre_.empty() && std::find(t.categories.begin(), t.categories.end(), filterGenre_) == t.categories.end())
continue;
+ if (filterPublisher_ && !matchesPublisher(t.publisher, filterPublisher_))
+ continue;
auto price = prices_.find(t.productId);
bool priced = price != prices_.end();
if (tab_ == Tab::Library) {
@@ -1436,13 +1517,13 @@ void AppUi::handleHome(const NavInput& in, UiEvent& ev) {
bool AppUi::anyFilter() const {
// Caller holds mutex_. Free and Lowest price only count in "Your games".
bool library = tab_ == Tab::Library && (filterFree_ || filterCheapest_);
- return library || filterConsole_ || filterMode_ || !filterGenre_.empty() || filterLanguage_;
+ return library || filterConsole_ || filterMode_ || !filterGenre_.empty() || filterPublisher_ || filterLanguage_;
}
std::vector<AppUi::Filter> AppUi::filterRow(int row) const {
// Caller holds mutex_. Prices only matter in "Your games" (Game Pass
// games aren't bought).
- if (row == 1) return {Filter::Mode, Filter::Genre, Filter::Language};
+ if (row == 1) return {Filter::Mode, Filter::Genre, Filter::Publisher, Filter::Language};
if (tab_ == Tab::GamePass) return {Filter::Console};
return {Filter::Free, Filter::Cheapest, Filter::Console};
}
@@ -1471,6 +1552,25 @@ std::vector<std::string> AppUi::filterOptions(Filter f) const {
for (auto& g : poolGenres()) out.push_back(std::move(g));
return out;
}
+ case Filter::Publisher:
+ return {
+ tr(Str::PublisherAll),
+ "Xbox Game Studios / Bethesda",
+ "Electronic Arts",
+ "Ubisoft",
+ "Square Enix",
+ "Warner Bros. Games",
+ "2K / Take-Two",
+ "Capcom",
+ "SEGA / Atlus",
+ "Bandai Namco",
+ "THQ Nordic / Plaion",
+ "Focus Entertainment",
+ "Devolver Digital",
+ "Annapurna Interactive",
+ "Team17",
+ tr(Str::PublisherIndies)
+ };
case Filter::Language:
return {tr(Str::LanguageAll), trf(Str::LangSubtitles, tr(Str::LanguageNoun)), trf(Str::LangAudio, tr(Str::LanguageNoun))};
default: return {};
@@ -1481,6 +1581,7 @@ int AppUi::filterSelected(Filter f) const {
// Caller holds mutex_.
if (f == Filter::Console) return filterConsole_;
if (f == Filter::Mode) return filterMode_;
+ if (f == Filter::Publisher) return filterPublisher_;
if (f == Filter::Language) return filterLanguage_;
if (f == Filter::Genre) {
auto genres = poolGenres();
@@ -1491,14 +1592,21 @@ int AppUi::filterSelected(Filter f) const {
}
void AppUi::chooseFilter(Filter f, int index) {
+ std::lock_guard<std::mutex> lock(mutex_);
+ chooseFilterLocked(f, index);
+}
+
+void AppUi::chooseFilterLocked(Filter f, int index) {
// Caller holds mutex_.
if (f == Filter::Console) filterConsole_ = index;
if (f == Filter::Mode) filterMode_ = index;
+ if (f == Filter::Publisher) filterPublisher_ = index;
if (f == Filter::Language) filterLanguage_ = index;
if (f == Filter::Genre) {
auto genres = poolGenres();
filterGenre_ = index > 0 && index <= static_cast<int>(genres.size()) ? genres[static_cast<size_t>(index - 1)] : "";
}
+ filterList_ = -1;
runSearch();
dirty_ = true;
}
@@ -1512,7 +1620,7 @@ std::string AppUi::filterText(Filter f) const {
auto options = filterOptions(f);
if (sel < static_cast<int>(options.size())) return options[static_cast<size_t>(sel)];
}
- return tr(f == Filter::Mode ? Str::FilterMode : f == Filter::Genre ? Str::FilterGenre : Str::FilterLanguage);
+ return tr(f == Filter::Mode ? Str::FilterMode : f == Filter::Genre ? Str::FilterGenre : f == Filter::Publisher ? Str::FilterPublisher : Str::FilterLanguage);
}
bool AppUi::filterOn(Filter f) const {
@@ -1545,7 +1653,7 @@ void AppUi::handleSearchKeys(const NavInput& in) {
int n = static_cast<int>(filterOptions(f).size());
if (in.down && filterListIndex_ + 1 < n) ++filterListIndex_;
if (in.up && filterListIndex_ > 0) --filterListIndex_;
- if (in.accept) chooseFilter(f, filterListIndex_);
+ if (in.accept) chooseFilterLocked(f, filterListIndex_);
if (in.accept || in.back) filterList_ = -1;
dirty_ = true;
return;
diff --git a/src/ui/app_ui.h b/src/ui/app_ui.h
index 70deb0f..0ef3244 100644
--- a/src/ui/app_ui.h
+++ b/src/ui/app_ui.h
@@ -244,6 +244,8 @@ public:
// `openList` (0 mode, 1 genre, 2 language) open; and the first results.
void showFilteredSearch(Tab tab, bool cheapest, int mode, const std::string& genre, int language, int openList = -1);
std::vector<std::pair<std::string, PriceInfo>> searchResults(size_t max) const;
+ enum class Filter { Free, Cheapest, Console, Mode, Genre, Publisher, Language };
+ void chooseFilter(Filter f, int index);
// Autoplay tests: where the focus is ("Game Pass row 2 card 6", ...).
std::string focusDescription() const;
void invalidate();
@@ -303,16 +305,15 @@ private:
void prefsEvent(UiEvent& ev) const;
// The filter buttons of the current tab's search.
// The search's filters, in two rows: Free, Lowest price (in "Your games"
- // only) and Console; then Mode, Genre and Language. The lists open a
+ // only) and Console; then Mode, Genre, Publisher and Language. The lists open a
// drop-down; Free and Lowest price turn on and off.
- enum class Filter { Free, Cheapest, Console, Mode, Genre, Language };
std::vector<Filter> filterRow(int row) const;
bool isList(Filter f) const { return f != Filter::Free && f != Filter::Cheapest; }
std::string filterText(Filter f) const; // the chip's label: its choice when one is made
bool filterOn(Filter f) const;
std::vector<std::string> filterOptions(Filter f) const;
int filterSelected(Filter f) const;
- void chooseFilter(Filter f, int index);
+ void chooseFilterLocked(Filter f, int index);
void pressFilter(Filter f);
std::vector<std::string> poolGenres() const; // the genres of the tab's games, most common first
bool anyFilter() const;
@@ -381,6 +382,7 @@ private:
int filterMode_ = 0; // 0 all, single, online multiplayer, online co-op, local
std::string filterGenre_; // empty: all
int filterLanguage_ = 0; // 0 any, 1 subtitles (or menus) in the app's language, 2 audio
+ int filterPublisher_ = 0; // 0 all, 1 Xbox/Bethesda, 2 EA, 3 Ubisoft, etc.
// The filter whose drop-down is open (-1: none), its focus and first row.
int filterList_ = -1, filterListIndex_ = 0, filterListTop_ = 0;
bool ownedKnown_ = false;
diff --git a/src/ui/strings.cpp b/src/ui/strings.cpp
index 3d96ba3..ed92ebf 100644
--- a/src/ui/strings.cpp
+++ b/src/ui/strings.cpp
@@ -231,6 +231,9 @@ constexpr Column kEnglish = {
"Default", // ProfileDefault
"Custom", // ProfileCustom
"Reset to default", // ResetToDefault
+ "Publisher", // FilterPublisher
+ "All publishers", // PublisherAll
+ "Indies & Others", // PublisherIndies
};
constexpr Column kPortugueseBR = {
@@ -432,6 +435,9 @@ constexpr Column kPortugueseBR = {
"Padrão",
"Personalizado",
"Restaurar padrão",
+ "Editora",
+ "Todas as editoras",
+ "Indies & Outras",
};
constexpr Column kSpanish = {
@@ -633,6 +639,9 @@ constexpr Column kSpanish = {
"Predeterminado",
"Personalizado",
"Restaurar predeterminado",
+ "Distribuidora",
+ "Todas las distribuidoras",
+ "Indies y otras",
};
constexpr Column kFrench = {
@@ -834,6 +843,9 @@ constexpr Column kFrench = {
"Par défaut",
"Personnalisé",
"Réinitialiser",
+ "Éditeur",
+ "Tous les éditeurs",
+ "Indépendants et autres",
};
constexpr Column kGerman = {
@@ -1035,6 +1047,9 @@ constexpr Column kGerman = {
"Standard",
"Benutzerdefiniert",
"Auf Standard zurücksetzen",
+ "Publisher",
+ "Alle Publisher",
+ "Indies & Andere",
};
constexpr Column kItalian = {
@@ -1236,6 +1251,9 @@ constexpr Column kItalian = {
"Predefinito",
"Personalizzato",
"Ripristina predefiniti",
+ "Editore",
+ "Tutti gli editori",
+ "Indie e altri",
};
constexpr std::array<const Column*, kLangs> kTable = {&kEnglish, &kPortugueseBR, &kSpanish,
diff --git a/src/ui/strings.h b/src/ui/strings.h
index 5d1dae4..653c54d 100644
--- a/src/ui/strings.h
+++ b/src/ui/strings.h
@@ -208,6 +208,9 @@ enum class Str {
ProfileDefault, // global/default profile
ProfileCustom, // per-game custom profile
ResetToDefault, // button to reset per-game profile to general settings
+ FilterPublisher, // search filter (a list)
+ PublisherAll,
+ PublisherIndies,
Count
};
diff --git a/src/xcloud/catalog.cpp b/src/xcloud/catalog.cpp
index bb8b410..99db049 100644
--- a/src/xcloud/catalog.cpp
+++ b/src/xcloud/catalog.cpp
@@ -127,4 +127,39 @@ std::string categoryName(const std::string& storeName) {
return storeName;
}
+bool isNonGameAddon(const std::string& titleId, const std::string& titleName) {
+ static const char* const kBadTitleIdTokens[] = {
+ "ARTBOOK",
+ "SOUNDTRACK",
+ "DIGITALSTORYART",
+ "INSTALLPACK",
+ "DIGITALEXTRAS",
+ "BONUSCONTENT",
+ };
+ for (const char* token : kBadTitleIdTokens) {
+ if (titleId.find(token) != std::string::npos) return true;
+ }
+ if (!titleName.empty()) {
+ std::string lower;
+ lower.reserve(titleName.size());
+ for (char c : titleName) lower.push_back(static_cast<char>(std::tolower(static_cast<unsigned char>(c))));
+
+ static const char* const kBadNameTokens[] = {
+ "artbook",
+ "soundtrack",
+ "trilha sonora",
+ "livro de arte",
+ "história e arte",
+ "historia e arte",
+ "digital story & art",
+ "install pack",
+ "upgrade pack",
+ };
+ for (const char* token : kBadNameTokens) {
+ if (lower.find(token) != std::string::npos) return true;
+ }
+ }
+ return false;
+}
+
} // namespace xc::xcloud
diff --git a/src/xcloud/catalog.h b/src/xcloud/catalog.h
index 971232b..117937d 100644
--- a/src/xcloud/catalog.h
+++ b/src/xcloud/catalog.h
@@ -59,6 +59,9 @@ struct ProductList {
// players use); the others stay as the store has them.
std::string categoryName(const std::string& storeName);
+// Returns true if titleId or titleName corresponds to a non-game add-on (artbook, soundtrack, install pack).
+bool isNonGameAddon(const std::string& titleId, const std::string& titleName = "");
+
bool fetchList(const std::string& siglId, const std::string& market, const std::string& language, ProductList& out,
std::string& err);
// Details for `ids` (batched); products the catalog does not know are absent.
diff --git a/src/xcloud/gssv.cpp b/src/xcloud/gssv.cpp
index 4f9aed9..5f21a3a 100644
--- a/src/xcloud/gssv.cpp
+++ b/src/xcloud/gssv.cpp
@@ -7,6 +7,7 @@
#include "util/json.h"
#include "platform/platform.h"
#include "util/log.h"
+#include "xcloud/catalog.h"
#include <cstdio>
#include <cstdlib>
@@ -288,7 +289,7 @@ bool GssvClient::listTitles(std::vector<Title>& out, std::string& err, bool rece
// (CALLISTO for Game Pass in the cloud) or F2P; none when bought.
for (const auto& program : t["details"]["userPrograms"].items())
if (program.str() != "F2P") title.viaSubscription = true;
- if (!title.titleId.empty()) out.push_back(std::move(title));
+ if (!title.titleId.empty() && !isNonGameAddon(title.titleId)) out.push_back(std::move(title));
}
continuation = recentOnly ? std::string() : (*j)["continuationToken"].str();
} while (!continuation.empty() && out.size() < 5000);