blob: 76752a61700c8d8168398928b5ed4658ed69e3ce (
plain)
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
|
#include "core/object.h"
class FileAccess;
class PCKPacker : public Object {
OBJ_TYPE(PCKPacker, Object);
FileAccess* file;
int alignment;
static void _bind_methods();
struct File {
String path;
String src_path;
int size;
uint64_t offset_offset;
};
Vector<File> files;
public:
Error pck_start(const String& p_file, int p_alignment);
Error add_file(const String& p_file, const String& p_src);
Error flush(bool p_verbose = false);
PCKPacker();
~PCKPacker();
};
|