Skip to content

Commit

Permalink
More archive stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Dec 23, 2024
1 parent 6bce824 commit 87b5619
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
8 changes: 4 additions & 4 deletions include/RE/A/ArchiveStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ namespace RE
virtual std::uint32_t DoGetSize() const; // 0C

// members
BSTSmartPointer<Stream> source; // 10
std::uint32_t startOffset; // 18
std::uint32_t currentOffset; // 1C
BSFixedString name; // 20
void* source; // 10
std::uint32_t startOffset; // 18
std::uint32_t currentOffset; // 1C
BSFixedString name; // 20
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(ArchiveStream) == 0x30);
Expand Down
18 changes: 15 additions & 3 deletions include/RE/C/CompressedArchiveStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ namespace RE
inline static constexpr auto RTTI = RTTI_BSResource__CompressedArchiveStream;
inline static constexpr auto VTABLE = VTABLE_BSResource__CompressedArchiveStream;

struct Data
{
std::uint64_t unk00; // 00
std::uint32_t compressedEndOffset; // 08
std::uint32_t decompressedOffset; // 0C
std::uint32_t decompressedEndOffset; // 10
std::uint32_t decompressedSize; // 14
void* decompressedBuffer; // 18
std::uint64_t unk20; // 20
};
static_assert(sizeof(Data) == 0x28);

~CompressedArchiveStream() override; // 00

// override (ArchiveStream)
Expand All @@ -24,9 +36,9 @@ namespace RE
std::uint32_t DoGetSize() const override; // 0C

// members
std::uint64_t unk28; // 28
std::uint32_t unk30; // 30
std::uint32_t unk34; // 34
Data* data; // 28
std::uint32_t totalRead; // 30
std::uint32_t unk34; // 34
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(CompressedArchiveStream) == 0x40);
Expand Down

0 comments on commit 87b5619

Please sign in to comment.