29 lines
1.7 KiB
Markdown
29 lines
1.7 KiB
Markdown
# Save guest qualification
|
|
|
|
Generate with `python3 tools/generate_save_fixture.py --action N`. It never
|
|
installs itself. Use disposable images under `.tmp`, never the user's card.
|
|
|
|
Append inventory/store/menu/game helpers to their respective module main.pbs,
|
|
export the helper services temporarily, and use the generated root entry.
|
|
Keep Init and MemcardBoot. Back up and restore all modified production files.
|
|
|
|
Actions: 0 saves a seeded profile when empty, or verifies reload when present;
|
|
1 also attempts Save after loading an existing profile (read-only test);
|
|
2 writes bad magic; 3 writes an unsupported schema; 4 commits only 12 bytes.
|
|
Actions 2..4 intentionally publish invalid game data in a valid disposable
|
|
container. A later boot must reject it, keep live game defaults, and preserve
|
|
its payload. Host metadata may change on admission; compare slot bytes rather
|
|
than equating a whole-container hash with payload preservation.
|
|
|
|
Markers after game rendering: pixel (0,0) is green on pass; pixel (3,0) encodes
|
|
phase and role; (6,0) is the SaveStore outcome. The 180 raw slot bytes can be
|
|
read from red values at (400,20+i); (401,0) contains the used length. Those
|
|
markers/columns are fixture-only and never belong in production.
|
|
|
|
A durable test must end the runtime process and reopen the same image. Check
|
|
00/7f/80/ff, native inventory/world flags, life normalization, clock clearing,
|
|
and a project-version change with stable app_id. Memory-only commits must
|
|
show NOT SAVED TO CARD. Explicitly discard only disposable memory-test RAM
|
|
when shutdown refuses dirty data. `tools/validate_save.py` verifies captures
|
|
against independent Python bytes, Adler-32 and native CHR pixel composition.
|