Skip to content

Commit

Permalink
Fixed TESDataHandler offsets
Browse files Browse the repository at this point in the history
Form types were added in 1.11.36, did not verify what they were
  • Loading branch information
expired6978 committed May 17, 2024
1 parent 17f0d29 commit d264606
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 1 addition & 5 deletions sfse/GameData.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ class TESDataHandler :
TESRegionList* unk1498;
BSTArray<TESObjectCELL*> unk14A0;
u64 unk14B0;
u64 unkPad1; // Added in 1.10.31
u64 unkPad2; // Added in 1.10.31
u64 unkPad3; // Added in 1.10.31
NiTPrimitiveArray<BGSAddonNode*> unk14B8;
u64 unk14D0;
u64 unk14D8;
Expand All @@ -142,8 +139,7 @@ class TESDataHandler :
}
};
static_assert(offsetof(TESDataHandler, pFormArray) == 0x70);
static_assert(offsetof(TESDataHandler, listFiles) == 0x1508);
static_assert(offsetof(TESDataHandler, unk1520) == 0x1538);
static_assert(offsetof(TESDataHandler, listFiles) == 0x1538);

struct MaterialDatabase
{
Expand Down
6 changes: 4 additions & 2 deletions sfse/GameForms.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,10 @@ enum class FormType : u32
kAVMD, // D4 BGSAVMData
kPERS, // D5 TESDataHandlerPersistentCreatedUtil::BGSPersistentIDsForm
kCHAL, // D6 BGSChallengeForm

kTotal // D7
kUNK1, // D7
kUNK2, // D8
kUNK3, // D9
kTotal // DA
};

class TESForm : public TESFormRefCount, public BSReflection::IObject
Expand Down

0 comments on commit d264606

Please sign in to comment.