summaryrefslogtreecommitdiff
path: root/wii/stringtablebuilder.h
blob: f416a376cfa91abab02ea91a4e08b7de55ec43c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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