From fdf8cfec2b795393d7ee901abaf747575067068b Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Oct 2010 03:15:41 +0200 Subject: bugfixes; working U8 archive support for reading/writing --- wii/stringtablebuilder.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 wii/stringtablebuilder.h (limited to 'wii/stringtablebuilder.h') diff --git a/wii/stringtablebuilder.h b/wii/stringtablebuilder.h new file mode 100644 index 0000000..f416a37 --- /dev/null +++ b/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(); + +protected: + int m_nextOffset; + QByteArray m_data; + QHash m_lookup; +}; + +#endif // STRINGTABLEBUILDER_H -- cgit v1.2.3