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) --- wii/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wii/common.h') diff --git a/wii/common.h b/wii/common.h index 34f1526..b440841 100644 --- a/wii/common.h +++ b/wii/common.h @@ -64,7 +64,7 @@ inline void ReadRGBA8Color(QColor &out, QDataStream &in) { out = RGBAToColor(col); } -inline void WriteRGBA8Color(QColor &in, QDataStream &out) { +inline void WriteRGBA8Color(const QColor in, QDataStream &out) { out << (quint32)ColorToRGBA(in); } @@ -77,7 +77,7 @@ inline void ReadS10Color(QColor &out, QDataStream &in) { out.setRgb(r, g, b, a); } -inline void WriteS10Color(QColor &in, QDataStream &out) { +inline void WriteS10Color(const QColor in, QDataStream &out) { out << (quint16)in.red(); out << (quint16)in.green(); out << (quint16)in.blue(); @@ -103,6 +103,7 @@ inline void InitDataStream(QDataStream &stream) { } QStringList ReadStringList(QDataStream &in); +void WriteStringList(QDataStream &out, QStringList list); QString ReadFixedLengthASCII(QDataStream &in, int length); void WriteFixedLengthASCII(QDataStream &out, QString str, int length); -- cgit v1.2.3