-
Notifications
You must be signed in to change notification settings - Fork 2
/
singlemod.h
59 lines (46 loc) · 1.34 KB
/
singlemod.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef SINGLEMOD_H
#define SINGLEMOD_H
#include "metadatastore.h"
#include "bundle.h"
#include <QDir>
#include <QFileInfo>
namespace Constants {
const QString CONTENT_PFIX = "/content";
const QString SCRIPTS_PFIX = "/scripts";
const QString CACHE_PFIX = "/texture.cache";
const QString METADATA_PFIX = "/metadata.store";
const QString RENAME_PFIX = "-merged";
const QString SLASH = "/";
const QString MERGED_SCRIPTS_NAME = "mod0000_MergedFiles";
const QString ICON_CHECK = "gui_new\\icons\\inventory";
const QString XML_CHECK = ".xml";
const QString SWF_CHECK = ".redswf";
}
enum State {NOT_MERGED = 0, MERGED, MERGED_PACK, CORRUPTED};
class Mod : public QObject
{
Q_OBJECT
public:
Mod(QString path, QObject* parent = 0);
void renameMerge();
void renameUnmerge();
QString folderPath;
QString folderPathNative;
QString contentPath;
QString scriptsPath;
QString cachePath;
QString modName;
bool hasScripts = false;
bool hasCache = false;
bool hasMetadata = false;
bool hasBundles = false;
bool isMergeable = false;
bool checked = false;
State modState = NOT_MERGED;
QString notes;
QFileInfoList mergedResources;
MetadataStore metadata;
QList<BundleFile*> bundles;
QFileInfo* checker;
};
#endif // SINGLEMOD_H