feat(bindings): graphics.dat archive handle #436
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!436
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/431-archive-handle"
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 #431.
GraphicsArchiveparses agraphics.datonce and carries everygraphics*function as a method:new GraphicsArchive(bytes),decodePng,entriesJson, …,free().dm2_graphics_archive_open(ptr, len, &g)(error in the returned buffer),dm2_graphics_archive_*,dm2_graphics_archive_free; null handle → error.GraphicsArchivecontext manager.Free functions unchanged.
Decoding all 5,676 DOS images in Node:
New dependency
self_cell(no deps; Apache-2.0 OR GPL-2.0-only, passes cargo-deny) for the owned-bytes + borrowing-archive pair, instead of hand-writtenunsafe.https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7