mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Respect "hidden" flag in the homebrew store. Useful when managing it.
(For example, I just hid "Lamecraft" because it didn't actually work).
This commit is contained in:
1 parent
c2f4fad56a
commit
48db42b6be
2 files changed
+4
-1
No files matched your search
+3
-1
@@ -359,6 +359,7 @@ void StoreScreen::ParseListing(std::string json) {
|
||||
e.size = game->getInt("size");
|
||||
e.downloadURL = game->getString("download-url", "");
|
||||
e.iconURL = game->getString("icon-url", "");
|
||||
e.hidden = game->getBool("hidden", false);
|
||||
const char *file = game->getString("file", 0);
|
||||
if (!file)
|
||||
continue;
|
||||
@@ -413,7 +414,8 @@ std::vector<StoreEntry> StoreScreen::FilterEntries() {
|
||||
std::vector<StoreEntry> filtered;
|
||||
for (size_t i = 0; i < entries_.size(); i++) {
|
||||
// TODO: Actually filter by category etc.
|
||||
filtered.push_back(entries_[i]);
|
||||
if (!entries_[i].hidden)
|
||||
filtered.push_back(entries_[i]);
|
||||
}
|
||||
return filtered;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user