Skip to content

feat: sync exclusion - #8

Merged
unveroleone merged 7 commits into
unveroleone:mainfrom
uncreepynuts:pr2-sync-exclusions
Nov 9, 2026
Merged

unveroleone merged 7 commits into
unveroleone:mainfrom
uncreepynuts:pr2-sync-exclusions

Conversation

@uncreepynuts

Copy link
Copy Markdown
Contributor

Motivation: Want to exclude specific games/categories from sync individually.

  • Exclude games from sync per-game or per-category
  • Excluded games drop out of the Games/Cloud tab display and Sync All; managed from a Settings screen

sfo_string() indexed from key_off instead of the fixed 20-byte
header, so every lookup went out of bounds and titles never
resolved past the id. Also strip embedded newlines some PSP
save-icon titles carry.
Center using the loaded texture's real size instead of a
hardcoded 144x80 PSP assumption; PS1 icons under Adrenaline
are 80x80.
Per-entry and per-category (native/PSP/RetroArch) exclusion flags,
plus a single is_effectively_excluded() predicate so callers don't
each re-derive the category-or-individual check by hand. Also adds
Config::update()/commit() to collapse the repeated
global-mutate-save-update_global sequence into one call.
It's a generic scroll/selection cursor used well beyond the Cloud
tab (game menu, save lists); belongs at the ui module root, not
nested under one screen. Also adds jump_to() for page-step
navigation, sharing do_scroll's top_row clamp via sync_top_row().
Excluded entries (individual or whole-category) drop out of the
grid entirely instead of just losing a badge -- native titles via
a new visible_native index filter, emulator entries via a rescan
filter. The game menu gains an "Exclude from Sync" action; picking
it closes the menu immediately (nothing left to do with a game
that just vanished from the grid) and the grid re-filters in the
same frame via a changed-flag GameList exposes, no waiting on the
menu's close animation or a manual rescan.

UITitles::invalidate() also flags a refresh for exclusion changes
made elsewhere (Settings, reached through the Cloud tab).
Uses the shared is_effectively_excluded() predicate for local and
emulator entries; cloud-only entries (no local EmulatorEntry to read
a kind from) go through emulator_kind_from_entry_id() instead of
re-deriving the id-prefix convention inline.
Full read/write console: every known game grouped under its
platform's category toggle, checkbox per game or per category,
foldable categories (auto-folds on exclude, unfolds on include),
Left/Right to page through a large category.
@unveroleone

Copy link
Copy Markdown
Owner

Code review done, and it builds. Waiting on testing on a real Vita before I merge. I will follow up here once that is done.

@unveroleone
unveroleone merged commit 985ebbb into unveroleone:main Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants