blob: 2bb51128e917904c2f93ab36674cf9346ea84c4b (
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/reference.h"
class FileAccess;
class PCKPacker : public Reference {
OBJ_TYPE(PCKPacker, Reference);
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();
};
|