Skip to content

App: refresh the bundled media databases on start - #345

Merged
pwnedbygary merged 1 commit into
masterfrom
fix/database-refresh
Nov 6, 2026
Merged

pwnedbygary merged 1 commit into
masterfrom
fix/database-refresh

Conversation

@pwnedbygary

Copy link
Copy Markdown
Owner

The ares media definitions the app ships (android/app/src/main/assets/Database/*.bml) are copied into the app's own files/ares/Database on first use, and extractFolder only wrote files that were missing. A release that updates a .bml therefore kept the old copy on every device updated in place — and after the ares merge the core read stale media definitions (a Neo Geo ROM failed to load against the new loader while a fresh install worked).

Database is now extracted with overwrite = true on every start (a handful of small text files); System (the user's own firmware) still fills only where empty.

Verified on the RP6: every app start now logs Extracting asset: Database/... for the whole folder, and a Neo Geo ROM loads against the updated database. Android release build and both unit-test suites pass (debug compile hit a flaky Kotlin backend crash once, an immediate re-run passed).

The Database assets were copied only where a file was missing, so an app updated in place kept the old
media definitions forever: after the ares merge, Neo Geo ROM loading failed against the new loader while a
fresh install worked. The Database folder is now re-extracted every start (small text files); the System
folder (the user's firmware) still fills only empty files.
@pwnedbygary
pwnedbygary merged commit 677eb28 into master Nov 6, 2026
5 checks passed
@pwnedbygary
pwnedbygary deleted the fix/database-refresh branch November 6, 2026 21:02
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.

1 participant