Podmiana makr na globalne zmienne statyczne. Create cargo zmodyfikowane

This commit is contained in:
yanczi 2025-12-21 11:49:30 +01:00
parent 022bc0d069
commit 608e382095
6 changed files with 63 additions and 72 deletions

View file

@ -44,7 +44,6 @@
#define FILE_FLAG_FILTERING 0xAB
//Prgoram title
#define PROGRAM_TITLE "eXtendet PAK"
#define PROGRAM_VERSION "v0.5"
@ -52,9 +51,31 @@
#define PROGRAM_COMPILING "19 December 2025"
#define PROGRAM_LICENSE "GNU LGPL v3"
//Limity
#define MAX_FILE_SIZE 8589934592 // 8GB
#define MAX_PAK_SIZE 8796093022208 // 8TB
namespace fl {
inline constexpr std::string_view sigpak = "XPAK";
inline constexpr std::string_view sigkey = "XKEY";
inline constexpr std::string_view extpak = "pak";
inline constexpr std::string_view extkey = "key";
}
namespace ds
{
inline constexpr int chunk_stream = 268435456;
inline constexpr int block_size = 131072;
inline constexpr int maxFileSize = 8589934592;
}
namespace flag
{
inline constexpr uint8_t raw = 0x00;
inline constexpr uint8_t zip = 0x0F;
inline constexpr uint8_t enc = 0xF0;
inline constexpr uint8_t ezd = 0xFF;
inline constexpr uint8_t filter = 0xAB;
}
struct CargoHead
{