-
Notifications
You must be signed in to change notification settings - Fork 0
/
arcwriter.h
43 lines (33 loc) · 849 Bytes
/
arcwriter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
This file is a part of the
Amagami SS PS2 Translation Project
You may feel free to use this code if you want so.
I provide no guarantee that this code is working,
useful or anything else. Use it at your own risk.
*/
#ifndef ARCWRITER_H
#define ARCWRITER_H
#include <QString>
#include <QFile>
#include <QByteArray>
#include <QVector>
#include <QtXml>
#include <QHash>
#include "datatypes.h"
#include "module.h"
class ArcWriter : public Module
{
public:
ArcWriter();
int loadStructure(QString structurePath);
int buildArchive(QString sourceDir, QString outputPath);
private:
QDomDocument xmlData;
quint32 entriesCount;
quint32 dataOffset;
QByteArray undecodedHeader;
QVector<arc_entry_t> entries;
QVector<QString> files;
QHash<quint32, QString> offsetToFileName;
};
#endif // ARCWRITER_H