Skip to content

Commit

Permalink
Misc declarations
Browse files Browse the repository at this point in the history
Adjusted chargen related declarations
  • Loading branch information
expired6978 committed Mar 6, 2024
1 parent 50b9d90 commit 2e33818
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 31 deletions.
2 changes: 2 additions & 0 deletions sfse/GameChargen.cpp
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#include "sfse/GameChargen.h"

RelocPtr<MenuActor*> TESNPCData::g_actorCheckpoint(0x0658F658);
6 changes: 4 additions & 2 deletions sfse/GameChargen.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "sfse_common/Utilities.h"
#include "sfse/NiTypes.h"

class TESNPC;
class MenuActor;

namespace TESNPCData
{
Expand All @@ -23,8 +23,10 @@ class ChargenDataModel : public IDataModel, public BSTSingletonSDM<ChargenDataMo

// Contains main UI data model wrappers, decode these later
// This function will pull data from the TESNPC into this wrapper
DEFINE_MEMBER_FN_1(Update, void, 0x018CB834, TESNPC*); // unk2 removed in 1.9.51
DEFINE_MEMBER_FN_1(Update, void, 0x018CB834, MenuActor*); // unk2 removed in 1.9.51
};

extern RelocPtr<MenuActor*> g_actorCheckpoint;
}

namespace BGSCharacterMorph
Expand Down
3 changes: 1 addition & 2 deletions sfse/GameFormComponents.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ struct PerkRankData
class BGSPerkRankArray : public BaseFormComponent
{
public:
PerkRankData* pPerksA; // 08
u32 uiPerkCount; // 10
BSTArray<PerkRankData> pPerksA; // 08
};
static_assert(sizeof(BGSPerkRankArray) == 0x18);

Expand Down
25 changes: 6 additions & 19 deletions sfse/GameMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,22 +138,10 @@ class ChargenMenu :
public:
MenuPaperDoll* pPaperDoll; // 2C0
TESNPC* npc; // 2C8
void* unk2D0; // 2D0 ChargenRestorePoint
u64 unk2D8[(0x5C0 - 0x2D8) >> 3];
u64 unk5C0;
u32 cameraPosition; // 5C8
u32 unk5CC; // 5CC
u64 unk5D0; // 5D0
u64 unk5D8; // 5D8
u8 unk5E0; // 5E0 - Camera dirty?
u8 unk5E1; // 5E1
u8 unk5E2; // 5E2
u8 unk5E3; // 5E3
u8 unk5E4; // 5E4
u8 unk5E5; // 5E5
u8 unk5E6; // 5E6
u8 unk5E7; // 5E7
u32 unk5E8; // 5E8
u64 unk2D0[(0x5B0 - 0x2D0) >> 3];
u32 cameraPosition; // 5B0
u32 unk5B4; // 5B4
u64 unk5D8[(0x648 - 0x5B8) >> 3];

enum
{
Expand All @@ -164,6 +152,5 @@ class ChargenMenu :
TRAITS_CAMERA_POSITION
};
};
static_assert(offsetof(ChargenMenu, unk2D0) == 0x2D0);
static_assert(offsetof(ChargenMenu, cameraPosition) == 0x5C8);
static_assert(offsetof(ChargenMenu, unk5E0) == 0x5E0);
static_assert(offsetof(ChargenMenu, cameraPosition) == 0x5B0);
static_assert(sizeof(ChargenMenu) == 0x648);
16 changes: 8 additions & 8 deletions sfse/GameObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class TESNPC :
u64 unk3C8; // 3C8
BSTArray<float>* unk3D0; // 3D0 -- 5 floats entries?
BSTHashMap2<u32, float>* AdditionalSliders; // 3D8
BSTHashMap<u32, BSTHashMap<BSFixedString, float>*>* unk3E0; // 3E0
BSTHashMap<u32, BSTHashMap<BSFixedStringCS, float>*>* unk3E0; // 3E0
struct HeadPartData
{
u32 type; // 00 1 - Mask?
Expand All @@ -160,15 +160,15 @@ class TESNPC :
BSTArray<HeadPartData> HeadPartDataA; // 3E0
u32 skinTone; // 3F8
u32 unk3FC; // 3FC
BSFixedString teeth; // 400
BSFixedString jewelryColor; // 408
BSFixedString eyeColor; // 410
BSFixedString hairColor; // 418
BSFixedString facialHairColor; // 420
BSFixedString eyebrowColor; // 428
BSFixedStringCS teeth; // 400
BSFixedStringCS jewelryColor; // 408
BSFixedStringCS eyeColor; // 410
BSFixedStringCS hairColor; // 418
BSFixedStringCS facialHairColor; // 420
BSFixedStringCS eyebrowColor; // 428
u64 unk468; // 430
BSFixedString unk438; // 438
BSTHashMap<BSFixedString, float>* shapeBlendData; // 440 - ShapeBlendData Map
BSTHashMap<BSFixedStringCS, float>* shapeBlendData; // 440 - ShapeBlendData Map
u8 pronoun; // 448
u8 pad449[7]; // 449

Expand Down

0 comments on commit 2e33818

Please sign in to comment.