-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCP.bt
55 lines (47 loc) · 1.07 KB
/
SCP.bt
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
//------------------------------------------------
//--- 010 Editor v7.0 Binary Template
//
// File: SCP.bt
// Authors: Vorono4ka
// Version: 0.3
// Purpose: Supercell pack file
// Category: Misc
// File Mask: *.scp
// ID Bytes: 53 43 50 21 // SCP!
// History:
//------------------------------------------------
LittleEndian();
typedef struct {
short unk; // Maybe the hash length, but devided by 2
short filenameLength;
int64 fileLength;
int64 fileOffset;
int64 outputLength;
char hash[32];
string filename;
local int off = FTell();
FSeek(fileOffset);
char data[fileLength];
FSeek(off);
} fileInfo <read=fileInfoRead>;
string fileInfoRead(fileInfo &v) {
return v.filename;
};
struct file {
char MAGIC[4];
int unk;
int unk;
int filesCount;
int64 infoOffset;
int64 infoLength; // Maybe offset from the end
int64 infoLength;
int64 unk;
int64 unk;
int64 unk;
int64 unk;
string infoSha;
FSeek(infoOffset);
while (!FEof()) {
fileInfo info;
}
} File;