feat(wasm): full save dump and rebuild against dungeon.dat and graphics.dat #338
No reviewers
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools!338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/wasm-full-save-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #332
Adds
saveToJsonFull/saveFromJsonFull(dm2-convert + dm2-wasm), exposingSaveDump::full/SaveDump::reconstruct.dungeon.datmust match the save's; otherwiseDungeonMismatch(instead of an opaque bitstream error).IncompleteRecordStream.GRAPHICS.DAT+GRAPHIC2.DATconcatenated.Tests
crates/dm2-convert/tests/full_roundtrip.rs: byte-exact round-trip for all DOS retail, Mac and DOS Beta fixtures; mismatched dungeon rejected on dump and rebuild; self-contained dump rejected by full rebuild.IncompleteRecordStreamuntested — no fixture triggers it.Notes
graphics.dat(DOS ↔ Mac) is not detected: it round-trips byte-exact anyway.wasm-opt -Oz. Not measured on the final npm package.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.