blob: c77a5d1960009ffdce5933f35ed9682a2f92372e (
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
|
#pragma once
#include <stdint.h>
typedef enum {
C4GroupEntryCore_NoCRC = 0,
C4GroupEntryCore_ContentsCRC = 1,
C4GroupEntryCore_ContentsFileNameCRC = 2
} C4GroupEntryCore_HasCRC;
typedef struct {
char FileName[257];
uint8_t Reserved1[3];
int32_t Packed;
int32_t Directory;
int32_t Size;
int32_t Reserved2;
int32_t Offset;
int32_t Modified;
uint8_t HasCRC;
uint32_t CRC;
uint8_t Executable;
uint8_t Reserved3[26];
} __attribute__((__packed__)) C4GroupEntryCore;
void C4GroupEntryCore_init(C4GroupEntryCore* const this);
void C4GroupEntryCore_setFileName(C4GroupEntryCore* const this, const char* const fileName);
|