Skip to content

Commit

Permalink
fix: update for 1.14.70 TESForm change
Browse files Browse the repository at this point in the history
new sizes aren't validated against the game, they've just been updated with regard to TESForm's change
  • Loading branch information
shad0wshayd3 committed Oct 1, 2024
1 parent a759ace commit 48b1493
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,5 +382,5 @@ namespace RE
std::uint64_t unk510; // 510
std::uint8_t unk518[88]; // 518
};
static_assert(sizeof(Actor) == 0x570);
static_assert(sizeof(Actor) == 0x578);
}
2 changes: 1 addition & 1 deletion include/RE/B/BGSFormFolderKeywordList.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ namespace RE
BSTArray<BGSKeyword*> keywords; // 30
BSFixedString formFolderPath; // 40
};
static_assert(sizeof(BGSFormFolderKeywordList) == 0x48);
static_assert(sizeof(BGSFormFolderKeywordList) == 0x50);
}
2 changes: 1 addition & 1 deletion include/RE/B/BGSKeyword.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ namespace RE
BSFixedString unk50; // 50
BSTEventSource<OnDestroyEvent> destroyEvent; // 58
};
static_assert(sizeof(BGSKeyword) == 0x78);
static_assert(sizeof(BGSKeyword) == 0x80);
}
2 changes: 1 addition & 1 deletion include/RE/B/BGSListForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ namespace RE
BSTArray<std::uint32_t>* scriptAddedTempForms; // 78
std::uint32_t scriptAddedFormCount; // 80
};
static_assert(sizeof(BGSListForm) == 0x88);
static_assert(sizeof(BGSListForm) == 0x90);
}
2 changes: 1 addition & 1 deletion include/RE/B/BGSMod.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace RE::BGSMod
std::uint8_t unkFB; // FB
std::uint8_t unkFC; // FC
};
static_assert(sizeof(Mod) == 0x100);
static_assert(sizeof(Mod) == 0x108);
}

namespace Template
Expand Down
2 changes: 1 addition & 1 deletion include/RE/B/BGSReflectedForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ namespace RE
virtual void Unk_6A(); // 6A
virtual void Unk_6B(); // 6B
};
static_assert(sizeof(BGSReflectedForm) == 0x30);
static_assert(sizeof(BGSReflectedForm) == 0x38);
}
2 changes: 1 addition & 1 deletion include/RE/P/PlayerCharacter.h
Original file line number Diff line number Diff line change
Expand Up @@ -410,5 +410,5 @@ namespace RE
std::uint32_t unk10D4; // 10D4
std::uint64_t unk10D8; // 10D8
};
static_assert(sizeof(PlayerCharacter) == 0x1120);
static_assert(sizeof(PlayerCharacter) == 0x1128);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESActorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ namespace RE
virtual void SetCombatStyle(TESCombatStyle*); // 84
virtual TESForm* GetAsForm(); // 85
};
static_assert(sizeof(TESActorBase) == 0x260);
static_assert(sizeof(TESActorBase) == 0x268);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESBoundAnimObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ namespace RE

~TESBoundAnimObject() override; // 00
};
static_assert(sizeof(TESBoundAnimObject) == 0xE0);
static_assert(sizeof(TESBoundAnimObject) == 0xE8);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESBoundObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ namespace RE
BGSObjectPlacementDefaults placementDefaults; // 0C8
std::uint32_t unk0D8; // 0D8
};
static_assert(sizeof(TESBoundObject) == 0xE0);
static_assert(sizeof(TESBoundObject) == 0xE8);
}
4 changes: 2 additions & 2 deletions include/RE/T/TESForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ namespace RE
std::uint8_t formChangeFlags; // 2C
std::uint8_t unk2D; // 2D
REX::Enum<FormType, std::uint8_t> formType; // 2E
std::uint8_t loadOrderIndex; // 2F - init'd to 0xFF
std::uint16_t loadOrderIndex; // 2F - init'd to 0xFFFF
};
static_assert(sizeof(TESForm) == 0x30);
static_assert(sizeof(TESForm) == 0x38);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESHandleForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ namespace RE

~TESHandleForm() override; // 00
};
static_assert(sizeof(TESHandleForm) == 0x30);
static_assert(sizeof(TESHandleForm) == 0x38);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESNPC.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ namespace RE
std::uint64_t unk440; // 440
REX::Enum<PRONOUN_TYPE, std::uint8_t> pronoun; // 448
};
static_assert(sizeof(TESNPC) == 0x450);
static_assert(sizeof(TESNPC) == 0x458);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ namespace RE
// members
BGSSnapTemplateComponent snapTemplate; // 030
};
static_assert(sizeof(TESObject) == 0x48);
static_assert(sizeof(TESObject) == 0x50);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESObjectARMO.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ namespace RE
std::uint64_t unk368; // 368
std::uint64_t unk370; // 370
};
static_assert(sizeof(TESObjectARMO) == 0x378);
static_assert(sizeof(TESObjectARMO) == 0x380);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESObjectCELL.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ namespace RE
std::uint32_t unk138; // 138
std::uint64_t unk140; // 140
};
static_assert(sizeof(TESObjectCELL) == 0x148);
static_assert(sizeof(TESObjectCELL) == 0x150);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESObjectREFR.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,5 +404,5 @@ namespace RE
private:
void AddLockChange();
};
static_assert(sizeof(TESObjectREFR) == 0xD0);
static_assert(sizeof(TESObjectREFR) == 0xD8);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESRace.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,5 @@ namespace RE
Unk9F8 unk9F0[SEXES::kTotal]; // 9F0
BGSLocalizedString unkA10; // A10
};
static_assert(sizeof(TESRace) == 0xA18);
static_assert(sizeof(TESRace) == 0xA20);
}
2 changes: 1 addition & 1 deletion include/RE/T/TESWorldSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,5 @@ namespace RE
TESWorldSpace* unk380; // 380
std::uint64_t unk388; // 388
};
static_assert(sizeof(TESWorldSpace) == 0x390);
static_assert(sizeof(TESWorldSpace) == 0x398);
}
4 changes: 2 additions & 2 deletions include/SFSE/Interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ namespace SFSE

constexpr void HasNoStructUse(const bool a_value) noexcept { SetOrClearBit(structureCompatibility, 1 << 0, a_value); }

// 1 << 2 is for runtime 1.8.86 and later
constexpr void IsLayoutDependent(const bool a_value) noexcept { SetOrClearBit(structureCompatibility, 1 << 2, a_value); }
// 1 << 3 is for runtime 1.14.70 and later
constexpr void IsLayoutDependent(const bool a_value) noexcept { SetOrClearBit(structureCompatibility, 1 << 3, a_value); }

constexpr void CompatibleVersions(std::initializer_list<REL::Version> a_versions) noexcept
{
Expand Down

0 comments on commit 48b1493

Please sign in to comment.