From 7a9387269e3b123b1647cf59c78cc6c998a9a330 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 3 Jun 2014 05:55:54 +0200 Subject: experimental 3DS support --- lyt/binaryfile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lyt/binaryfile.cpp') diff --git a/lyt/binaryfile.cpp b/lyt/binaryfile.cpp index 26ca8a0..b040bb6 100644 --- a/lyt/binaryfile.cpp +++ b/lyt/binaryfile.cpp @@ -28,14 +28,15 @@ LYTBinaryFile::LYTBinaryFile(QByteArray data) : magic(0), version(0) { QDataStream reader(data); InitDataStream(reader); - quint16 endian, firstSectionOffset, sectionCount; + quint16 endian, firstSectionOffset; + quint32 sectionCount; quint32 fileSize; reader >> this->magic.value; reader >> endian; + reader >> firstSectionOffset; reader >> this->version.value; reader >> fileSize; - reader >> firstSectionOffset; reader >> sectionCount; LYTBinaryFileSection section; -- cgit v1.2.3