Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

Search: price orders leave out free games

Rafael Abud Ferreirafcf31e5b3e12
diff --git a/src/ui/app_ui.cpp b/src/ui/app_ui.cpp
index 8620656..e41fc85 100644
--- a/src/ui/app_ui.cpp
+++ b/src/ui/app_ui.cpp
@@ -490,6 +490,9 @@ void AppUi::runSearch() {
if (tab_ == Tab::Library) {
bool free = t.freeInStore || (t.purchasable && priced && price->second.list < 0.005);
if (filterFree_ && !free) continue;
+ // Free games have their own filter: the price orders leave them
+ // out (FREE would top "Lowest price"), unless Free is on too.
+ if ((filterCheapest_ || filterSale_) && free && !filterFree_) continue;
// Price filters look at games to buy only.
if ((filterCheapest_ || filterSale_) && !t.purchasable) continue;
if (filterSale_ && !(priced && price->second.msrp > price->second.list + 0.005)) continue;