Skasowanie części makr

This commit is contained in:
yanczi 2025-12-23 22:08:29 +01:00
parent f9ea960cf0
commit bfc6c1811d
6 changed files with 13 additions and 45 deletions

View file

@ -59,8 +59,7 @@ bool ViewCargo::ViewFiles(const std::string& path)
uint64_t tabPos = 0;
uint32_t tabSize = 0;
const std::string signature = SIGNATURE;
std::vector<char> magic(signature.length());
std::vector<char> magic(fl::sigpak.length());
int8_t cargoVer = 0;
std::ifstream cargo(path, std::ios::binary);
@ -82,7 +81,7 @@ bool ViewCargo::ViewFiles(const std::string& path)
cargo.read(reinterpret_cast<char*>(&tabSize), sizeof(tabSize));
//SprawdŸ czy kontener ma poprawn¹ sygnature
if (std::string(magic.begin(), magic.end()) != signature)
if (std::string(magic.begin(), magic.end()) != fl::sigpak)
{
std::cerr << "Error: Corrupted Cargo" << std::endl;
cargo.close();
@ -129,15 +128,15 @@ void ViewCargo::ShowFile(const std::string& file, const uint8_t& flag)
// Ustawianie checkboxów
switch (flag)
{
case FILE_FLAG_COMPRESS:
case flag::zip:
compresedCheck = "[x]";
break;
case FILE_FLAG_ENCRYPT:
case flag::enc:
encryptedCheck = "[x]";
break;
case FILE_FLAG_ZIPENC:
case flag::ezd:
compresedCheck = "[x]";
encryptedCheck = "[x]";
break;