From 7d4e4c0b34a613dd3c0220475ae4e448197522c1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 12 Mar 2011 23:17:12 +0100 Subject: initial commit. now I can start playing with stuff! --- MapTool/wii/stringtablebuilder.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 MapTool/wii/stringtablebuilder.h (limited to 'MapTool/wii/stringtablebuilder.h') diff --git a/MapTool/wii/stringtablebuilder.h b/MapTool/wii/stringtablebuilder.h new file mode 100644 index 0000000..4fce60f --- /dev/null +++ b/MapTool/wii/stringtablebuilder.h @@ -0,0 +1,22 @@ +#ifndef STRINGTABLEBUILDER_H +#define STRINGTABLEBUILDER_H + +#include "common.h" +#include +#include +#include + +class WiiStringTableBuilder { +public: + WiiStringTableBuilder(); + + quint32 add(QString str); + QByteArray pack() const; + +protected: + int m_nextOffset; + QByteArray m_data; + QHash m_lookup; +}; + +#endif // STRINGTABLEBUILDER_H -- cgit v1.2.3