Repair duplicate content ids on load; pass unknown attributes and text through

- Duplicate ids in any content list (spritesheets, shaders, layers, nulls, events,
  sounds, regions) are repaired at load: the first holder keeps the id, so tracks
  stay bound to the item they referenced (previously remapped to the wrong layer)
- Unknown attributes and element text survive save; retired BakeCount/OriginalDelay
  are still dropped. Private corpus (1,251 files) output unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 14:40:20 -04:00
1 parent 8953101245
commit 5311c2835f
28 files changed
+223 -175

No files matched your search

+6
View File
@@ -54,6 +54,12 @@ namespace anm2ed
void attribute(const char* name, int value) override { formatted_append(name, value); }
void attribute(const char* name, bool value) override { formatted_append(name, value); }
void attribute(const char* name, float value) override { formatted_append(name, value); }
void text(const char* value) override
{
byte_append('T');
string_append(value);
}
void body() override { byte_append('['); }
void close() override { byte_append(']'); }
};