Usunięto TUI, Zmieniono strukturę PAK... agan, Rezygnacja z FNV hash jako referencji, Zmieana wartości flag na maski
This commit is contained in:
parent
a84a69cbd6
commit
91aaa279ec
16 changed files with 86 additions and 575 deletions
29
DataStruct.h
29
DataStruct.h
|
|
@ -34,27 +34,19 @@
|
|||
#define CHUNK_STREAM_16MB 16777216 // 16MB
|
||||
#define CHUNK_STREAM_256MB 268435456 // 256MB
|
||||
|
||||
enum StoreMethod
|
||||
{
|
||||
FILTERING = -1,
|
||||
RAW = 0,
|
||||
COMPRESS = 1,
|
||||
ENCRYPT = 2,
|
||||
COMPRESSxENCRYPT = 3
|
||||
};
|
||||
#define FILE_FLAG_RAW 0x00
|
||||
#define FILE_FLAG_COMPRESS 0x0F
|
||||
#define FILE_FLAG_ENCRYPT 0xF0
|
||||
#define FILE_FLAG_ZIPENC 0xFF
|
||||
|
||||
#define FILE_FLAG_RAW 0x00
|
||||
#define FILE_FLAG_COMPRESS 0x01
|
||||
#define FILE_FLAG_ENCRYPT 0x02
|
||||
#define FILE_FLAG_ZIPENC 0x03
|
||||
#define FILE_FLAG_CHUNK 0x04
|
||||
#define FILE_FLAG_FILTERING 0xAB
|
||||
|
||||
|
||||
//Prgoram title
|
||||
#define PROGRAM_TITLE "eXtendet PAK"
|
||||
#define PROGRAM_VERSION "v0.4"
|
||||
#define PROGRAM_VERSION "v0.5"
|
||||
#define PROGRAM_AUTHOR "Yanczi"
|
||||
#define PROGRAM_COMPILING "12 December 2025"
|
||||
#define PROGRAM_COMPILING "19 December 2025"
|
||||
#define PROGRAM_LICENSE "GNU LGPL v3"
|
||||
|
||||
//Limity
|
||||
|
|
@ -64,18 +56,17 @@ enum StoreMethod
|
|||
struct CargoHead
|
||||
{
|
||||
std::string signature;
|
||||
int8_t version;
|
||||
uint32_t files;
|
||||
uint8_t version;
|
||||
uint64_t table;
|
||||
uint32_t files;
|
||||
};
|
||||
|
||||
struct FilesTable
|
||||
{
|
||||
uint8_t nameLen;
|
||||
std::string nameFile;
|
||||
uint64_t hashName;
|
||||
uint64_t offset;
|
||||
uint64_t size;
|
||||
uint64_t crc;
|
||||
int8_t flag;
|
||||
uint8_t flag;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue