Skip to content

Commit a5f9305

Browse files
committed
art offset saving
1 parent 877e795 commit a5f9305

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

TODO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ definition([
1919
many(art()),
2020
])
2121

22-
// fix file references when copying
23-
// art ffset save message / input size
2422
// autozoom based on sprite size for sprites tab
2523

2624
// crackers first, then kd cham

app/components/file/file-object.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export const FileObject = observer(({ obj }) => {
8686

8787
function saveArt(e) {
8888
ioWrap(obj.art.path, setArtError, e, async (path) => {
89+
if (obj.art.offset) {
90+
throw new Error('Can only save art at offset 0');
91+
}
8992
const tiles = tilesToBuffer(environment.tiles, obj.art.compression);
9093
await fs.writeFile(path, tiles);
9194
});

0 commit comments

Comments
 (0)