Skip to content

Add ARMSX1/ARMSX2 smart cache support - #88

Open
misantronic wants to merge 1 commit into
feature/watermelonds-smart-cachefrom
feature/armsx-smart-cache
Open

Add ARMSX1/ARMSX2 smart cache support#88
misantronic wants to merge 1 commit into
feature/watermelonds-smart-cachefrom
feature/armsx-smart-cache

Conversation

@misantronic

Copy link
Copy Markdown
Owner

Adds Armsx1SmartCacheStrategy and Armsx2SmartCacheStrategy, sharing one query helper, that pull recently played games from ARMSX2's RecentGamesContentProvider (name, SAF/file URI, serial, lastPlayed). Unlike WatermelonDS, ARMSX2 doesn't precompute an RA hash, so these candidates go through the normal hash-then-lookup path instead of a bypass.

Also fixes toAbsoluteStoragePath() to handle file:// URIs, not just content://. ARMSX2's provider returns plain file:// paths (since it can write freely to its own storage without SAF), and those were falling through unresolved.

Depends on ARMSX2 exposing that provider: ARMSX2/ARMSX2#566.

Verified end-to-end against a side-by-side ARMSX2 DEV build: a PS2 game with a non-RA-recognized dump correctly produced a real "no match" from RA's own gameid API (proving the hash+lookup pipeline, not a bug), and a second game (OutRun 2006) matched and cached successfully (RA gameId 20859), confirmed directly in the local database.

Tracked in #33.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant