Skip to content

Commit

Permalink
runtime 1.10.31, version 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpatt committed Mar 20, 2024
1 parent bd6dfa5 commit 3739caa
Show file tree
Hide file tree
Showing 34 changed files with 7,407 additions and 7,391 deletions.
6 changes: 3 additions & 3 deletions cmake/versioning.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
set(SFSE_VERSION_MAJOR 0)
set(SFSE_VERSION_MINOR 2)
set(SFSE_VERSION_PATCH 4)
set(SFSE_VERSION_PATCH 5)

set(RUNTIME_VERSION_MAJOR 1)
set(RUNTIME_VERSION_MINOR 9)
set(RUNTIME_VERSION_PATCH 71)
set(RUNTIME_VERSION_MINOR 10)
set(RUNTIME_VERSION_PATCH 31)
set(RUNTIME_VERSION_TYPE 0)

math(
Expand Down
2 changes: 1 addition & 1 deletion sfse/GameChargen.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include "sfse/GameChargen.h"

RelocPtr<MenuActor*> TESNPCData::g_actorCheckpoint(0x0658F658);
RelocPtr<MenuActor*> TESNPCData::g_actorCheckpoint(0x06540328);
4 changes: 2 additions & 2 deletions sfse/GameChargen.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class ChargenDataModel : public IDataModel, public BSTSingletonSDM<ChargenDataMo

static ChargenDataModel* GetSingleton()
{
RelocPtr<ChargenDataModel*> singleton(0x06581E78);
RelocPtr<ChargenDataModel*> singleton(0x06532AC8);
return *singleton;
}

// 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, MenuActor*); // unk2 removed in 1.9.51
DEFINE_MEMBER_FN_1(Update, void, 0x0183190C, MenuActor*); // unk2 removed in 1.9.51
};

extern RelocPtr<MenuActor*> g_actorCheckpoint;
Expand Down
2 changes: 1 addition & 1 deletion sfse/GameConsole.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "sfse/GameConsole.h"
#include <stdarg.h>

RelocPtr <ConsoleLog*> g_console(0x06581A10);
RelocPtr <ConsoleLog*> g_console(0x06532650);

void Console_Print(const char* fmt, ...)
{
Expand Down
2 changes: 1 addition & 1 deletion sfse/GameConsole.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class ConsoleLog
{
public:
DEFINE_MEMBER_FN_2(VPrint, void, 0x028D8B18, const char* fmt, va_list args);
DEFINE_MEMBER_FN_2(VPrint, void, 0x0286EF28, const char* fmt, va_list args);
};

extern RelocPtr <ConsoleLog*> g_console;
Expand Down
2 changes: 1 addition & 1 deletion sfse/GameData.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include "sfse/GameData.h"

RelocPtr<MaterialDatabase> g_materialDatabase(0x061521A0 - 0x08);
RelocPtr<MaterialDatabase> g_materialDatabase(0x061046E0 - 0x08);
2 changes: 1 addition & 1 deletion sfse/GameData.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class TESDataHandler :

static TESDataHandler* GetSingleton()
{
RelocPtr<TESDataHandler*> singleton(0x0614E1F8);
RelocPtr<TESDataHandler*> singleton(0x06100738);
return *singleton;
}
};
Expand Down
1,398 changes: 699 additions & 699 deletions sfse/GameEvents.h

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sfse/GameForms.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sfse/GameForms.h"

RelocAddr<TESForm::_GetFormByNumericID> TESForm::GetFormByNumericID(0x0150ECD0);
RelocAddr<TESForm::_GetFormByEditorID> TESForm::GetFormByEditorID(0x0150EE2C);
RelocAddr<TESForm::_GetFormByNumericID> TESForm::GetFormByNumericID(0x0145BE30);
RelocAddr<TESForm::_GetFormByEditorID> TESForm::GetFormByEditorID(0x0145BF90);
2 changes: 1 addition & 1 deletion sfse/GameMemory.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "sfse/GameMemory.h"

RelocAddr<_GetMemoryManager> GetMemoryManager(0x005480E4);
RelocAddr<_GetMemoryManager> GetMemoryManager(0x0055BB24);

void* Heap_Allocate(size_t size)
{
Expand Down
6 changes: 3 additions & 3 deletions sfse/GameMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ static_assert(offsetof(ScrapHeap, currentThreadId) == 0x4B8);
class MemoryManager
{
public:
DEFINE_MEMBER_FN_3(Allocate, void*, 0x00548104, size_t size, size_t alignment, bool aligned);
DEFINE_MEMBER_FN_2(Free, void, 0x0054FEF4, void* buf, bool aligned);
DEFINE_MEMBER_FN_0(GetThreadScrapHeap, ScrapHeap*, 0x00834A10);
DEFINE_MEMBER_FN_3(Allocate, void*, 0x0055BB44, size_t size, size_t alignment, bool aligned);
DEFINE_MEMBER_FN_2(Free, void, 0x00571D30, void* buf, bool aligned);
DEFINE_MEMBER_FN_0(GetThreadScrapHeap, ScrapHeap*, 0x0076D934);
};

using _GetMemoryManager = MemoryManager * (*)();
Expand Down
4 changes: 2 additions & 2 deletions sfse/GameObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ class TESNPC :
u8 pronoun; // 448
u8 pad449[7]; // 449

DEFINE_MEMBER_FN_1(DeriveGeneticParentAppearance, void, 0x01B66628, TESNPC* source);
DEFINE_MEMBER_FN_1(CopyAppearance, void, 0x01B64A60, TESNPC* source);
DEFINE_MEMBER_FN_1(DeriveGeneticParentAppearance, void, 0x01AD3428, TESNPC* source);
DEFINE_MEMBER_FN_1(CopyAppearance, void, 0x01AD1860, TESNPC* source);
};
static_assert(sizeof(TESNPC) == 0x450);
static_assert(sizeof(TESNPC::HeadPartData) == 0x28);
Expand Down
2 changes: 1 addition & 1 deletion sfse/GameRTTI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

typedef void* (*_Runtime_DynamicCast_Internal)(void* srcObj, u32 arg1, const void* fromType, const void* toType, u32 arg4);

RelocAddr <_Runtime_DynamicCast_Internal> Runtime_DynamicCast_Internal(0x03576990); // __RTDynamicCast
RelocAddr <_Runtime_DynamicCast_Internal> Runtime_DynamicCast_Internal(0x0352FA30); // __RTDynamicCast

void* Runtime_DynamicCast(void* srcObj, const void* fromType, const void* toType)
{
Expand Down
8 changes: 7 additions & 1 deletion sfse/GameRTTI.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ extern const void * RTTI_BGSEquipSlot;
extern const void * RTTI_BGSExplosion;
extern const void * RTTI_BGSExternalComponentDataSource;
extern const void * RTTI_BGSFaceFX;
extern const void * RTTI_BGSFacialExpressionData;
extern const void * RTTI_BGSFadeManager;
extern const void * RTTI_BGSFogVolumeForm;
extern const void * RTTI_BGSFootIkImplementation;
Expand Down Expand Up @@ -376,6 +377,7 @@ extern const void * RTTI_BGSOrbitedDataComponent;
extern const void * RTTI_BGSOutfit;
extern const void * RTTI_BGSOverridePackCollection;
extern const void * RTTI_BGSPackIn;
extern const void * RTTI_BGSPackInUtils__BGSPackInEventHandler;
extern const void * RTTI_BGSPackageDataBool;
extern const void * RTTI_BGSPackageDataFloat;
extern const void * RTTI_BGSPackageDataInt;
Expand Down Expand Up @@ -843,6 +845,7 @@ extern const void * RTTI_BSGalaxy__Biomes__Map;
extern const void * RTTI_BSGalaxy__ModuleState;
extern const void * RTTI_BSGalaxy__Physics__Havok__BSGalaxyCollisionObject;
extern const void * RTTI_BSGalaxy__Physics__Havok__bhkSpaceWorld;
extern const void * RTTI_BSGalaxy__Storage__SkipCelestialsFunctor;
extern const void * RTTI_BSGalaxy__hknpBSShiftOffsetCollector;
extern const void * RTTI_BSGameDataSystemUtility;
extern const void * RTTI_BSGameStreamUtility;
Expand Down Expand Up @@ -1336,6 +1339,7 @@ extern const void * RTTI_CameraOverrideStartHandler;
extern const void * RTTI_CameraOverrideStopHandler;
extern const void * RTTI_CameraShakeHandler;
extern const void * RTTI_CameraZoomHandler;
extern const void * RTTI_Camera__DebugCinematicCamera;
extern const void * RTTI_Camera__DebugFollowCamera;
extern const void * RTTI_Camera__DebugFreeCamera;
extern const void * RTTI_Camera__DebugModule;
Expand Down Expand Up @@ -2135,6 +2139,7 @@ extern const void * RTTI_CreationRendererPrivate__ScaleformText2DRenderPass;
extern const void * RTTI_CreationRendererPrivate__ScaleformTextRenderPass;
extern const void * RTTI_CreationRendererPrivate__ScaleformToTextureRenderPass;
extern const void * RTTI_CreationRendererPrivate__SceneSetupRenderPass;
extern const void * RTTI_CreationRendererPrivate__ScreenSpaceShadowsRenderPass;
extern const void * RTTI_CreationRendererPrivate__SeparableSSS_HorizontalRenderPass;
extern const void * RTTI_CreationRendererPrivate__SeparableSSS_RenderPass;
extern const void * RTTI_CreationRendererPrivate__SeparableSSS_VerticalRenderPass;
Expand Down Expand Up @@ -3212,6 +3217,7 @@ extern const void * RTTI_MonocleMenu_Bioscan;
extern const void * RTTI_MonocleMenu_FastTravel;
extern const void * RTTI_MonocleMenu_Harvest;
extern const void * RTTI_MonocleMenu_Initialize;
extern const void * RTTI_MonocleMenu_OpenDoor;
extern const void * RTTI_MonocleMenu_Outpost;
extern const void * RTTI_MonocleMenu_PhotoMode;
extern const void * RTTI_MonocleMenu_Shutdown;
Expand Down Expand Up @@ -3501,7 +3507,6 @@ extern const void * RTTI_Particles__BundleInfo;
extern const void * RTTI_Particles__EmitterBinding;
extern const void * RTTI_Particles__EmitterDefinition;
extern const void * RTTI_Particles__EmitterMaterialDependency;
extern const void * RTTI_Particles__ExpressionParser;
extern const void * RTTI_Particles__ForcesProperties;
extern const void * RTTI_Particles__GeometryAsShapeDependency;
extern const void * RTTI_Particles__GeometryParticlesProperties;
Expand Down Expand Up @@ -3764,6 +3769,7 @@ extern const void * RTTI_PhotoModeDataModel__PhotoModeSettingsData__SettingData;
extern const void * RTTI_PhotoModeEffectController;
extern const void * RTTI_PhotoModeMenu;
extern const void * RTTI_PhotoMode_InitializeCategory;
extern const void * RTTI_PhotoMode_RefineSetting;
extern const void * RTTI_PhotoMode_ResetToDefaults;
extern const void * RTTI_PhotoMode_SliderChanged;
extern const void * RTTI_PhotoMode_StepperChanged;
Expand Down
Loading

0 comments on commit 3739caa

Please sign in to comment.