Zmiana metody kompresji na chunkowanie, zmiana nazwy z Void Archive na expak

This commit is contained in:
yanczi 2025-09-30 00:33:16 +02:00
parent f6150b0d17
commit aef8daae9b
15 changed files with 320 additions and 93 deletions

View file

@ -25,24 +25,32 @@
#define EXTENSION "pak"
#define SIGNATURE "VoidFS"
#define SIGNATURE "XPAK"
#define VERSION 11
#define VERSION 100
//Prgoram title
#define PROGRAM_TITLE "Void Archive Tool"
#define PROGRAM_VERSION "v1.1"
#define PROGRAM_TITLE "eXtendet PAK"
#define PROGRAM_VERSION "v1.2"
#define PROGRAM_AUTHOR "Yanczi"
#define PROGRAM_COMPILING "1 September 2025"
#define PROGRAM_COMPILING "28 September 2025"
#define PROGRAM_LICENSE "GNU LGPL v3"
//Limity
#define MAX_FILE_SIZE 2147483648 // 2GB
#define MAX_PAK_SIZE 8796093022208 // 8TB
// Metody zapisania pliku
#define RAW_FILE 0
#define ZIP_FILE 1
#define CRYPT_FILE 2
#define CRYPT_ZIP 3
struct CargoHead
{
std::string signature;
uint8_t version;
uint16_t version;
uint32_t files;
uint64_t table;
};
@ -51,9 +59,9 @@ struct FilesTable
{
uint8_t nameLen;
std::string nameFile;
uint32_t hashName;
uint64_t offset;
uint32_t size;
uint32_t rawSize;
uint64_t crc;
bool isZip;
uint8_t isZip;
};