From ebcc95da4c26369511caa90d89c5ed06e1e4853a Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Oct 2010 20:17:20 +0200 Subject: brlyt packing added, plus some changes in the existing API (mostly for const correctness). brlyt writing may still need some testing (especially for the material structs) --- lyt/group.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lyt/group.cpp') diff --git a/lyt/group.cpp b/lyt/group.cpp index 10b534d..4573459 100644 --- a/lyt/group.cpp +++ b/lyt/group.cpp @@ -23,12 +23,12 @@ LYTGroup::LYTGroup() { -void LYTGroup::writeToDataStream(QDataStream &out) { +void LYTGroup::writeToDataStream(QDataStream &out) const { WriteFixedLengthASCII(out, name, 0x10); // write the contents out << (quint16)panes.count(); - out.skipRawData(2); // padding + WritePadding(2, out); foreach (LYTPane *pane, panes) { WriteFixedLengthASCII(out, pane->name, 0x10); -- cgit v1.2.3