Skip to content

fix(mister): embed ArcadeDB CSV as fallback for offline first boot#530

Merged
wizzomafizzo merged 2 commits intomainfrom
fix/embed-arcadedb-fallback
Feb 8, 2026
Merged

fix(mister): embed ArcadeDB CSV as fallback for offline first boot#530
wizzomafizzo merged 2 commits intomainfrom
fix/embed-arcadedb-fallback

Conversation

@wizzomafizzo
Copy link
Member

Summary

  • Embeds the ArcadeDB CSV into MiSTer/MiSTeX production builds via //go:embed with the embed_arcadedb build tag, so arcade game lookups work on first boot without internet
  • Read() falls back to the embedded data when the on-disk CSV is missing; the runtime download still takes priority
  • Adds a download-arcadedb Taskfile task that MiSTer/MiSTeX builds depend on, and plumbs EXTRA_TAGS through the build chain (Taskfile, zigcc, docker)

Closes #526

When MiSTer/MiSTeX has no internet on first boot, the ArcadeDB CSV
cannot be downloaded, causing arcade game lookups to fail silently.
Bundle the CSV into production builds via go:embed with a build tag
so the runtime download still takes priority but offline users get
a functional baseline.

Closes #526
@sentry
Copy link

sentry bot commented Feb 8, 2026

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/platforms/mister/arcadedb/arcadedb.go 89.47% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

gocsv silently accepts malformed CSV rows, producing entries with empty
Setname or Name fields. These create useless mappings in the tracker's
name map. Filter them out in both the disk and embedded read paths, and
return an error from readEmbedded if no usable entries remain.
@wizzomafizzo wizzomafizzo merged commit ba1c2b4 into main Feb 8, 2026
10 checks passed
@wizzomafizzo wizzomafizzo deleted the fix/embed-arcadedb-fallback branch February 8, 2026 04:14
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.

Inconsistent media write behavior when launching Bubble Bobble from search vs menu

1 participant