diff options
Diffstat (limited to 'wii/stringtablebuilder.h')
-rw-r--r-- | wii/stringtablebuilder.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 <QtCore/QString> +#include <QtCore/QHash> +#include <QtCore/QByteArray> + +class WiiStringTableBuilder { +public: + WiiStringTableBuilder(); + + quint32 add(QString str); + QByteArray pack(); + +protected: + int m_nextOffset; + QByteArray m_data; + QHash<QString, quint32> m_lookup; +}; + +#endif // STRINGTABLEBUILDER_H |