Skip to content

Add recoverable record containers for one memory-card save item - #187

Merged
capz merged 6 commits into
mainfrom
feat/card-record-store
Nov 16, 2026
Merged

capz merged 6 commits into
mainfrom
feat/card-record-store

Conversation

@capz

@capz capz commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Add CardRecordStore and MemoryCard.OpenRecordStore: one browser item with independently replaceable logical records, packed small records, two sector-separated checkpoints, copy-on-write allocation protecting both checkpoints and verified data/checkpoint writes. Native block access is limited to identified DNDREC01 containers and never replaces an existing file. Browser artwork is stored once; updates avoid whole-file staging/journals.

The backing store is fixed-size and exclusively owned; callers retain the MemoryCard mount and reopen after ambiguous failures. The public backend rejects I/O after its owning mount is disposed. Capacity errors preserve prior records. Multi-record/card transactions remain application-owned. See docs/card-record-store.md.

Validation: Core and compiler builds passed (existing nullable warnings); 57,856 host record-store checks passed, including every torn-sector byte boundary for initial checkpoint, data and subsequent checkpoint writes and bounded small updates; native card adapter fixture passed with strict warnings, alignment, mutable libogc file length, metadata, identity and existing-file guards. The public MemoryCard.OpenRecordStore smoke project built and generated a native AOT bundle successfully. Fixture groups and AOT smoke are wired into the corresponding CI/test gates. Physical GameCube/Swiss/Memory Card 251 and real flash power-loss testing remain outstanding.

@capz
capz merged commit faf4810 into main Nov 16, 2026
21 checks passed
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