Skip to content

Commit

Permalink
Adjust class sizes for 1.6.640
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Dec 26, 2024
1 parent d82b45d commit 151727a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 28 deletions.
4 changes: 0 additions & 4 deletions include/RE/A/ArchiveStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ namespace RE
std::uint32_t currentOffset; // 1C
BSFixedString name; // 20
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(ArchiveStream) == 0x30);
#else
static_assert(sizeof(ArchiveStream) == 0x28);
#endif
}
}
4 changes: 0 additions & 4 deletions include/RE/A/AsyncStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ namespace RE
std::uint32_t minPacketSize; // 10
std::uint32_t pad14; // 14
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(AsyncStream) == 0x20);
#else
static_assert(sizeof(AsyncStream) == 0x18);
#endif
}
}
4 changes: 0 additions & 4 deletions include/RE/C/CompressedArchiveStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ namespace RE
std::uint32_t totalRead; // 30
std::uint32_t unk34; // 34
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(CompressedArchiveStream) == 0x40);
#else
static_assert(sizeof(CompressedArchiveStream) == 0x38);
#endif
}
}
4 changes: 0 additions & 4 deletions include/RE/D/DevNull.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ namespace RE
ErrorCode DoWrite(const void* a_buffer, std::uint64_t a_toWrite, std::uint64_t& a_written) const override; // 07
ErrorCode DoSeek(std::uint64_t a_toSeek, SeekMode a_mode, std::uint64_t& a_sought) const override; // 08
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(NullStream) == 0x18);
#else
static_assert(sizeof(NullStream) == 0x10);
#endif

~DevNull() override; // 00

Expand Down
4 changes: 0 additions & 4 deletions include/RE/S/Stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ namespace RE
virtual bool DoGetName(BSFixedString& a_dst) const; // 0A - { a_dst = ""; return false; }
virtual ErrorCode DoCreateAsync(BSTSmartPointer<AsyncStream>& a_streamOut) const; // 0B - { return ErrorCode::kUnsupported; }
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(Stream) == 0x18);
#else
static_assert(sizeof(Stream) == 0x10);
#endif
}
}
9 changes: 1 addition & 8 deletions include/RE/S/StreamBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,8 @@ namespace RE

// members
std::uint32_t totalSize; // 08
#ifdef SKYRIM_SUPPORT_AE
std::uint32_t unk0C; // 0C
#endif
std::uint32_t flags; // 10
std::uint32_t flags; // 10
};
#ifdef SKYRIM_SUPPORT_AE
static_assert(sizeof(StreamBase) == 0x18);
#else
static_assert(sizeof(StreamBase) == 0x10);
#endif
}
}

0 comments on commit 151727a

Please sign in to comment.