diff options
author | Aki <please@ignore.pl> | 2022-08-11 21:46:05 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-08-11 21:46:05 +0200 |
commit | ff972b194ff36252e9974327f66f05ea394fd704 (patch) | |
tree | d48504c4c48e1d14476646caeb5b0f8f3ef5182e /ArchiveEx/Archive.h | |
parent | ca3cabf0670f1d313412f6eb0db7dad3a5e6be56 (diff) | |
download | starshatter-ff972b194ff36252e9974327f66f05ea394fd704.zip starshatter-ff972b194ff36252e9974327f66f05ea394fd704.tar.gz starshatter-ff972b194ff36252e9974327f66f05ea394fd704.tar.bz2 |
Implemented inserting entries into archive
Diffstat (limited to 'ArchiveEx/Archive.h')
-rw-r--r-- | ArchiveEx/Archive.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ArchiveEx/Archive.h b/ArchiveEx/Archive.h index e19c718..5330aea 100644 --- a/ArchiveEx/Archive.h +++ b/ArchiveEx/Archive.h @@ -40,7 +40,10 @@ public: int Expand(int index, std::uint8_t*& buffer, bool null_terminated=false) const; int Expand(const char* filepath, std::uint8_t*& buffer, bool null_terminated=false) const; int Find(const char* filepath) const; + int Update(const char* filepath); + void WriteMeta(); void UpdateBlockMap(); + std::size_t FindFreeSpot(std::size_t bytes) const; void PrintNamesOfEntries() const; void PrintBlocks() const; std::size_t DirectoryBlocks() const; |