diff options
| author | Treeki <treeki@gmail.com> | 2010-10-14 20:17:20 +0200 | 
|---|---|---|
| committer | Treeki <treeki@gmail.com> | 2010-10-14 20:17:20 +0200 | 
| commit | ebcc95da4c26369511caa90d89c5ed06e1e4853a (patch) | |
| tree | 6ed445f0204a6e6615088d135c4b29c4309077a4 /wii/archiveu8.cpp | |
| parent | fdf8cfec2b795393d7ee901abaf747575067068b (diff) | |
| download | LayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.tar.gz LayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.zip  | |
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)
Diffstat (limited to 'wii/archiveu8.cpp')
| -rw-r--r-- | wii/archiveu8.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/wii/archiveu8.cpp b/wii/archiveu8.cpp index 5e0ad5d..d27dfde 100644 --- a/wii/archiveu8.cpp +++ b/wii/archiveu8.cpp @@ -124,7 +124,7 @@ void WiiArchiveU8::readDir(QDataStream &in, WiiDirectory &dir, int lastChild, U8 -void WiiArchiveU8::writeToDataStream(QDataStream &out) { +void WiiArchiveU8::writeToDataStream(QDataStream &out) const {  	U8WriteInfo info;  	// first off, before we do anything else, create the string table @@ -179,7 +179,7 @@ void WiiArchiveU8::writeToDataStream(QDataStream &out) {  } -void WiiArchiveU8::addNodeToStringTable(WiiFSObject &node, WiiStringTableBuilder &table) { +void WiiArchiveU8::addNodeToStringTable(const WiiFSObject &node, WiiStringTableBuilder &table) const {  	table.add(node.name);  	if (node.isDirectory()) { @@ -191,7 +191,7 @@ void WiiArchiveU8::addNodeToStringTable(WiiFSObject &node, WiiStringTableBuilder  } -void WiiArchiveU8::countNode(WiiFSObject &node, int *countPtr) { +void WiiArchiveU8::countNode(const WiiFSObject &node, int *countPtr) const {  	(*countPtr)++;  	if (node.isDirectory()) { @@ -203,7 +203,7 @@ void WiiArchiveU8::countNode(WiiFSObject &node, int *countPtr) {  } -void WiiArchiveU8::writeDir(QDataStream &out, WiiDirectory &dir, U8WriteInfo &info) { +void WiiArchiveU8::writeDir(QDataStream &out, const WiiDirectory &dir, U8WriteInfo &info) const {  	foreach (WiiFSObject *p, dir.children) {  		info.currentNode++; @@ -244,7 +244,7 @@ void WiiArchiveU8::writeDir(QDataStream &out, WiiDirectory &dir, U8WriteInfo &in  } -void WiiArchiveU8::writeNodeData(QDataStream &out, WiiFSObject &node) { +void WiiArchiveU8::writeNodeData(QDataStream &out, const WiiFSObject &node) const {  	if (node.isDirectory()) {  		// write all the children's data  		WiiDirectory *thisDir = (WiiDirectory*)&node;  | 
