diff --git a/lib/object.cpp b/lib/object.cpp index de584c3..5491b25 100644 --- a/lib/object.cpp +++ b/lib/object.cpp @@ -152,6 +152,24 @@ bytearray Object::ToPackedData(MxOb::FileType filetype, const ChunkedData &chunk *(uint32_t*)(data.data()+10) = chunks.at(0).size() + 14; break; } + case MxOb::FLC: + { + // First chunk is a complete FLIC header, so add it as-is + data.append(chunks[0]); + + // Subsequent chunks are FLIC frames with an additional 20 byte header that needs to be stripped + const int CUSTOM_HEADER_SZ = 20; + for (size_t i=1; i