new pack system

This commit is contained in:
d1str4ught
2025-09-21 05:28:55 +02:00
parent 775cb2f927
commit 5b1d3c6bce
100 changed files with 5269 additions and 5825 deletions

21
src/PackLib/Pack.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <string>
#include <mio/mmap.hpp>
#include "config.h"
class CPack : public std::enable_shared_from_this<CPack>
{
public:
CPack() = default;
~CPack() = default;
bool Open(const std::string& path, TPackFileMap& entries);
bool GetFile(const TPackFileEntry& entry, TPackFile& result);
private:
TPackFileHeader m_header;
mio::mmap_source m_file;
CryptoPP::CTR_Mode<CryptoPP::Camellia>::Decryption m_decryption;
};