summaryrefslogtreecommitdiff
path: root/lyt/binaryfile.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-06-03 05:55:54 +0200
committerTreeki <treeki@gmail.com>2014-06-03 05:55:54 +0200
commit7a9387269e3b123b1647cf59c78cc6c998a9a330 (patch)
tree7874647c497a6b6113f660ff27f6f79b7fc7d4aa /lyt/binaryfile.cpp
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-7a9387269e3b123b1647cf59c78cc6c998a9a330.tar.gz
LayoutStudio-7a9387269e3b123b1647cf59c78cc6c998a9a330.zip
experimental 3DS support
Diffstat (limited to 'lyt/binaryfile.cpp')
-rw-r--r--lyt/binaryfile.cpp5
1 files changed, 3 insertions, 2 deletions
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;