summaryrefslogtreecommitdiff
path: root/lyt/binaryfilesection.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/binaryfilesection.cpp
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-7a9387269e3b123b1647cf59c78cc6c998a9a330.tar.gz
LayoutStudio-7a9387269e3b123b1647cf59c78cc6c998a9a330.zip
experimental 3DS support
Diffstat (limited to 'lyt/binaryfilesection.cpp')
-rw-r--r--lyt/binaryfilesection.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lyt/binaryfilesection.cpp b/lyt/binaryfilesection.cpp
index 5115cda..98286cd 100644
--- a/lyt/binaryfilesection.cpp
+++ b/lyt/binaryfilesection.cpp
@@ -39,7 +39,12 @@ void LYTBinaryFileSection::writeToDataStream(QDataStream &out) const {
void LYTBinaryFileSection::readFromDataStream(QDataStream &in) {
quint32 length;
- in >> (quint32&)magic.value;
+ char a[4];
+ in.readRawData(a, 4);
+ magic.str[0] = a[3];
+ magic.str[1] = a[2];
+ magic.str[2] = a[1];
+ magic.str[3] = a[0];
in >> (quint32&)length;
char *raw = new char[length - 8];