Skip to content

Commit

Permalink
prelim address update
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpatt committed Nov 21, 2023
1 parent 402ba5f commit 81d35d3
Show file tree
Hide file tree
Showing 29 changed files with 7,400 additions and 7,376 deletions.
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(0x05906238);
RelocPtr<ChargenDataModel*> singleton(0x059751F8);
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_2(Update, void, 0x01890958, TESNPC*, void** unk2); // Unk2 looks like somekind of restore point, is usually CharGenMenu+0x2D0
DEFINE_MEMBER_FN_2(Update, void, 0x01895594, TESNPC*, void** unk2); // Unk2 looks like somekind of restore point, is usually CharGenMenu+0x2D0
};
}

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(0x05905DD0);
RelocPtr <ConsoleLog*> g_console(0x05974D90);

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, 0x02886F18, const char* fmt, va_list args);
DEFINE_MEMBER_FN_2(VPrint, void, 0x02893108, 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(0x054DCFD0 - 0x08);
RelocPtr<MaterialDatabase> g_materialDatabase(0x05546C50 - 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(0x054D9028);
RelocPtr<TESDataHandler*> singleton(0x05542CA8);
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(0x014D7870);
RelocAddr<TESForm::_GetFormByEditorID> TESForm::GetFormByEditorID(0x014D79CC);
RelocAddr<TESForm::_GetFormByNumericID> TESForm::GetFormByNumericID(0x014D93D0);
RelocAddr<TESForm::_GetFormByEditorID> TESForm::GetFormByEditorID(0x014D952C);
4 changes: 2 additions & 2 deletions sfse/GameMemory.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "sfse/GameMemory.h"

RelocAddr<_GetMemoryManager> GetMemoryManager(0x00546554);
RelocAddr<_GetMemoryManager> GetMemoryManager(0x005475B4);

void* Heap_Allocate(size_t size)
{
Expand All @@ -10,4 +10,4 @@ void* Heap_Allocate(size_t size)
void Heap_Free(void* ptr)
{
GetMemoryManager()->Free(ptr, false);
}
}
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*, 0x00546574, size_t size, size_t alignment, bool aligned);
DEFINE_MEMBER_FN_2(Free, void, 0x0055A9D4, void* buf, bool aligned);
DEFINE_MEMBER_FN_0(GetThreadScrapHeap, ScrapHeap*, 0x00837DC4);
DEFINE_MEMBER_FN_3(Allocate, void*, 0x005475D4, size_t size, size_t alignment, bool aligned);
DEFINE_MEMBER_FN_2(Free, void, 0x0055BA34, void* buf, bool aligned);
DEFINE_MEMBER_FN_0(GetThreadScrapHeap, ScrapHeap*, 0x0008389D0);
};

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 @@ -178,8 +178,8 @@ class TESNPC :
u8 pronoun; // 480
u8 pad481[7]; // 481

DEFINE_MEMBER_FN_1(DeriveGeneticParentAppearance, void, 0x01B27FA8, TESNPC* source);
DEFINE_MEMBER_FN_1(CopyAppearance, void, 0x01B263E0, TESNPC* source);
DEFINE_MEMBER_FN_1(DeriveGeneticParentAppearance, void, 0x01B2DBE8, TESNPC* source);
DEFINE_MEMBER_FN_1(CopyAppearance, void, 0x01B2C020, TESNPC* source);
};
static_assert(sizeof(TESNPC) == 0x488);
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(0x034CB6C0); // __RTDynamicCast
RelocAddr <_Runtime_DynamicCast_Internal> Runtime_DynamicCast_Internal(0x03516310); // __RTDynamicCast

void* Runtime_DynamicCast(void* srcObj, const void* fromType, const void* toType)
{
Expand Down
48 changes: 30 additions & 18 deletions sfse/GameRTTI.h

Large diffs are not rendered by default.

13,168 changes: 6,590 additions & 6,578 deletions sfse/GameRTTI.inl

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions sfse/GameReferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ class TESObjectREFR : public TESForm
u8 unk10A; // 10A
u8 unk10B; // 10B

DEFINE_MEMBER_FN_0(IsInSpaceship, bool, 0x02B3E644)
DEFINE_MEMBER_FN_0(IsInSpace, bool, 0x01A0DC88)
DEFINE_MEMBER_FN_1(HasKeyword, bool, 0x0139E878, BGSKeyword*);
DEFINE_MEMBER_FN_0(IsInSpaceship, bool, 0x02B4B594)
DEFINE_MEMBER_FN_0(IsInSpace, bool, 0x01A140A8)
DEFINE_MEMBER_FN_1(HasKeyword, bool, 0x0139F778, BGSKeyword*);
};
static_assert(sizeof(TESObjectREFR) == 0x110);

Expand Down Expand Up @@ -382,10 +382,10 @@ class Actor : public TESObjectREFR

// This function is very slow, do not use for realtime updates, mainly used for "entire character changed"
// The fields represent which subsets of chargen to update, usually you want (false, 0x28, false)
DEFINE_MEMBER_FN_3(UpdateAppearance, void, 0x024AC91C, bool unk1, u32 flags, bool changeRace);
DEFINE_MEMBER_FN_3(UpdateAppearance, void, 0x024B89AC, bool unk1, u32 flags, bool changeRace);

DEFINE_MEMBER_FN_0(UpdateChargenAppearance, void, 0x02315CF8);
DEFINE_MEMBER_FN_1(SetSkinTone, void, 0x02315970, u32 skinToneIndex);
DEFINE_MEMBER_FN_0(UpdateChargenAppearance, void, 0x0231F9D8);
DEFINE_MEMBER_FN_1(SetSkinTone, void, 0x0231F650, u32 skinToneIndex);

u64 unk110[(0x260 - 0x110) >> 3]; // 110
void* unk260; // 260
Expand Down
4 changes: 2 additions & 2 deletions sfse/GameScript.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "GameScript.h"

RelocPtr <Script::SCRIPT_FUNCTION> g_firstScriptCommand(0x0551FF30);
RelocPtr <Script::SCRIPT_FUNCTION> g_firstConsoleCommand(0x055136C0);
RelocPtr <Script::SCRIPT_FUNCTION> g_firstScriptCommand(0x05588580);
RelocPtr <Script::SCRIPT_FUNCTION> g_firstConsoleCommand(0x0557BE20);
8 changes: 4 additions & 4 deletions sfse/GameSettings.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "sfse/GameSettings.h"

RelocPtr <INISettingCollection *> SettingT<INISettingCollection>::pCollection(0x05921F58);
RelocPtr <INIPrefSettingCollection *> SettingT<INIPrefSettingCollection>::pCollection(0x05921F78);
RelocPtr <RegSettingCollection *> SettingT<RegSettingCollection>::pCollection(0x05920B68);
RelocPtr <GameSettingCollection *> SettingT<GameSettingCollection>::pCollection(0x059033F8);
RelocPtr <INISettingCollection *> SettingT<INISettingCollection>::pCollection(0x05990E88);
RelocPtr <INIPrefSettingCollection *> SettingT<INIPrefSettingCollection>::pCollection(0x05990EA8);
RelocPtr <RegSettingCollection *> SettingT<RegSettingCollection>::pCollection(0x0598FAA8);
RelocPtr <GameSettingCollection *> SettingT<GameSettingCollection>::pCollection(0x059723E0);

u32 Setting::GetType(void) const
{
Expand Down
2 changes: 1 addition & 1 deletion sfse/GameSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class GameSettingCollection : public SettingCollectionMap<Setting>
public:
virtual ~GameSettingCollection();

DEFINE_MEMBER_FN_1(GetSetting, Setting*, 0x015861E4, const char*);
DEFINE_MEMBER_FN_1(GetSetting, Setting*, 0x01587D54, const char*);
};
static_assert(sizeof(GameSettingCollection) == 0x158);

Expand Down
12 changes: 6 additions & 6 deletions sfse/GameStreams.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ class BSResourceNiBinaryStream : public NiBinaryStream
u64 uiStreamPos; // 20
BSResource::ErrorCode eLastError; // 28

DEFINE_MEMBER_FN_1(Construct, void, 0x0347A2D0, const char* apName);
DEFINE_MEMBER_FN_0(Destroy, void, 0x0347A374);
DEFINE_MEMBER_FN_1(Seek_Impl, void, 0x0347AB7C, s64 iNumBytes);
DEFINE_MEMBER_FN_1(GetBufferInfo_Impl, void, 0x0347A5D4, BufferInfo& info);
DEFINE_MEMBER_FN_2(DoRead_Impl, u64, 0x0347A45C, void* apBuffer, u64 auiBytes);
DEFINE_MEMBER_FN_2(DoWrite_Impl, u64, 0x0347A4C0, const void* apBuffer, u64 auiBytes);
DEFINE_MEMBER_FN_1(Construct, void, 0x034C4F44, const char* apName);
DEFINE_MEMBER_FN_0(Destroy, void, 0x034C4FE8);
DEFINE_MEMBER_FN_1(Seek_Impl, void, 0x034C57F0, s64 iNumBytes);
DEFINE_MEMBER_FN_1(GetBufferInfo_Impl, void, 0x034C5248, BufferInfo& info);
DEFINE_MEMBER_FN_2(DoRead_Impl, u64, 0x034C50D0, void* apBuffer, u64 auiBytes);
DEFINE_MEMBER_FN_2(DoWrite_Impl, u64, 0x034C5134, const void* apBuffer, u64 auiBytes);
};
static_assert(sizeof(BSResourceNiBinaryStream) == 0x30);
8 changes: 4 additions & 4 deletions sfse/GameTypes.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "sfse/GameTypes.h"

RelocAddr <BSStringPool::Entry::GetEntryT> BSStringPool::Entry::GetEntry(0x0314D4A0);
RelocAddr <BSStringPool::Entry::GetEntryWT> BSStringPool::Entry::GetEntryW(0x0314DCB0);
RelocAddr <BSStringPool::Entry::ReleaseT> BSStringPool::Entry::Release(0x008366EC);
RelocAddr <BSStringPool::Entry::GetEntryT> BSStringPool::Entry::GetEntry(0x0315EA60);
RelocAddr <BSStringPool::Entry::GetEntryWT> BSStringPool::Entry::GetEntryW(0x0315F270);
RelocAddr <BSStringPool::Entry::ReleaseT> BSStringPool::Entry::Release(0x008372F8);

RelocPtr<u32> BSCRC32::uiCRCTable(0x03F26170);
RelocPtr<u32> BSCRC32::uiCRCTable(0x03F829B0);
4 changes: 2 additions & 2 deletions sfse/GameUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ class UI :
u64 unk400[(0x4F8 - 0x400) >> 3]; // 400

// This properly locks the data structure, use this
DEFINE_MEMBER_FN_2(IsMenuOpen, bool, 0x02E74900, const BSFixedString&);
DEFINE_MEMBER_FN_2(IsMenuOpen, bool, 0x02E863C4, const BSFixedString&);

static UI* GetSingleton()
{
RelocPtr<UI*> singleton(0x056FC430);
RelocPtr<UI*> singleton(0x0576B400);
return *singleton;
}
};
Expand Down
2 changes: 1 addition & 1 deletion sfse/Hooks_Command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <vector>

using _Command_Process = bool (*)(void* __this);
RelocAddr <_Command_Process> Command_Process(0x03159948);
RelocAddr <_Command_Process> Command_Process(0x0316AF38);
_Command_Process Command_Process_Original = nullptr;

namespace TaskInterface
Expand Down
4 changes: 2 additions & 2 deletions sfse/Hooks_Data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "sfse/GameSettings.h"
#endif

RelocAddr <uintptr_t> GameDataLoad_Target(0x023EF7F0 + 0x1058); // End of this function before the retn
RelocAddr <uintptr_t> GameDataLoad_Target(0x023F9CC0 + 0x1098); // End of this function before the retn

void Hook_GameData_Loaded()
{
Expand Down Expand Up @@ -111,4 +111,4 @@ void Hooks_Data_Apply()
g_localTrampoline.endAlloc(code.getCurr());
g_branchTrampoline.write6Branch(GameDataLoad_Target.getUIntPtr(), uintptr_t(code.getCode()));
}
}
}
4 changes: 2 additions & 2 deletions sfse/Hooks_Scaleform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#endif

typedef bool(*_IMenu_LoadMovie)(IMenu* menu, bool addEventDispatcher, bool unk2);
RelocAddr <_IMenu_LoadMovie> IMenu_LoadMovie(0x02E7D884); // IMenu vtable +7
RelocAddr <_IMenu_LoadMovie> IMenu_LoadMovie(0x02E8F344); // IMenu vtable +7
_IMenu_LoadMovie IMenu_LoadMovie_Original = nullptr;

using _BSScaleformManager_ctor = BSScaleformManager*(*)(BSScaleformManager* __this);
RelocAddr <_BSScaleformManager_ctor> BSScaleformManager_ctor(0x02E7FF80);
RelocAddr <_BSScaleformManager_ctor> BSScaleformManager_ctor(0x02E919E0);
_BSScaleformManager_ctor BSScaleformManager_ctor_Original = nullptr;

static bool s_enableScaleformLog = false;
Expand Down
4 changes: 2 additions & 2 deletions sfse/Hooks_Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ bool GetSFSEVersion_Execute(const SCRIPT_PARAMETER* paramInfo, const char*, TESO
}

typedef bool (*_ConsoleCommandInit)(void* unk1);
RelocAddr <_ConsoleCommandInit> ConsoleCommandInit(0x01AEB330);
RelocAddr <_ConsoleCommandInit> ConsoleCommandInit(0x01AF10A0);
_ConsoleCommandInit ConsoleCommandInit_Original = nullptr;

void ConsoleCommandInit_Hook(void* unk1)
Expand Down Expand Up @@ -109,7 +109,7 @@ void ConsoleCommandInit_Hook(void* unk1)
cmd.bInvalidatesCellList = 0;
}

RelocAddr<void*> EmptyFunc(0x01255AC0);
RelocAddr<void*> EmptyFunc(0x012564E0);
_MESSAGE("%s (%s)", iter->pFunctionName, iter->pExecuteFunction == EmptyFunc ? "Empty" : "Implemented");
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion sfse/Hooks_Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const char * kHook_ShowVersion_FormatString =
"%08x v%s [SFSE " __PREPRO_TOKEN_STR__(SFSE_VERSION_INTEGER) "."
__PREPRO_TOKEN_STR__(SFSE_VERSION_INTEGER_MINOR) "."
__PREPRO_TOKEN_STR__(SFSE_VERSION_INTEGER_BETA) "]";
RelocAddr <uintptr_t> kHook_ShowVersion_Offset(0x0207AD40 + 0x5D);
RelocAddr <uintptr_t> kHook_ShowVersion_Offset(0x020805F0 + 0x5D);

void Hooks_Version_Apply()
{
Expand Down
14 changes: 7 additions & 7 deletions sfse/PapyrusNativeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class NativeFunctionBase : public IFunction
u16 unk0A; // 0A

MEMBER_FN_PREFIX(ParameterInfo);
DEFINE_MEMBER_FN(GetParam, u64 *, 0x0307B1FC, u32 idx, BSFixedString * nameOut, u64 * typeOut);
DEFINE_MEMBER_FN(GetParam, u64 *, 0x0308C7BC, u32 idx, BSFixedString * nameOut, u64 * typeOut);
};

virtual BSFixedString * GetName(void) override { return &m_fnName; }
Expand Down Expand Up @@ -134,11 +134,11 @@ class NativeFunctionBase : public IFunction
virtual bool Run(VMValue * baseValue, VMClassRegistry * registry, u32 arg2, VMValue * resultValue, VMState * state) = 0;

MEMBER_FN_PREFIX(NativeFunctionBase);
DEFINE_MEMBER_FN(Impl_Invoke, u32, 0x0307AED4, u64 unk0, u64 unk1, VMClassRegistry * registry, VMState * unk3);
DEFINE_MEMBER_FN(Impl_Invoke, u32, 0x0308C494, u64 unk0, u64 unk1, VMClassRegistry * registry, VMState * unk3);
// ??_7?$NativeFunction1@VActiveEffect@@XPEAVTESForm@@@BSScript@@6B@ entry 0x10
DEFINE_MEMBER_FN(Impl_Fn10, BSFixedString *, 0x0307B264);
DEFINE_MEMBER_FN(Impl_GetParamInfo, bool, 0x0307B300, u32 idx, void * out);
DEFINE_MEMBER_FN(Impl_Fn15, void *, 0x0307B26C, u64 arg0, u64 arg1);
DEFINE_MEMBER_FN(Impl_Fn10, BSFixedString *, 0x0308C824);
DEFINE_MEMBER_FN(Impl_GetParamInfo, bool, 0x0308C8C0, u32 idx, void * out);
DEFINE_MEMBER_FN(Impl_Fn15, void *, 0x0308C82C, u64 arg0, u64 arg1);

protected:
BSFixedString m_fnName; // 10
Expand Down Expand Up @@ -172,8 +172,8 @@ class NativeFunction : public NativeFunctionBase
virtual bool HasCallback(void) override { return m_callback != 0; }

MEMBER_FN_PREFIX(NativeFunction);
DEFINE_MEMBER_FN(Impl_ctor, NativeFunction *, 0x0307AD58, const char * fnName, const char * className, u8 unk0, u32 numParams);
DEFINE_MEMBER_FN(Impl_dtor, void, 0x0307AE14); // same as NativeFunctionBase dtor
DEFINE_MEMBER_FN(Impl_ctor, NativeFunction *, 0x0308C318, const char * fnName, const char * className, u8 unk0, u32 numParams);
DEFINE_MEMBER_FN(Impl_dtor, void, 0x0308C3D4); // same as NativeFunctionBase dtor

protected:
void * m_callback; // 50
Expand Down
2 changes: 1 addition & 1 deletion sfse/ScaleformManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class BSScaleformManager

static BSScaleformManager* GetSingleton()
{
RelocPtr<BSScaleformManager*> singleton(0x05900EC8);
RelocPtr<BSScaleformManager*> singleton(0x0596FE98);
return *singleton;
}
};
2 changes: 1 addition & 1 deletion sfse/ScaleformMemory.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "sfse/ScaleformMemory.h"

RelocPtr<Scaleform::MemoryHeap*> Scaleform::Memory::pGlobalHeap(0x05437A98);
RelocPtr<Scaleform::MemoryHeap*> Scaleform::Memory::pGlobalHeap(0x054A1718);

void* ScaleformHeap_Allocate(u64 size)
{
Expand Down
46 changes: 23 additions & 23 deletions sfse/ScaleformValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,37 +62,37 @@ class Value

virtual ~ObjectInterface();

DEFINE_MEMBER_FN_3(HasMember, bool, 0x00ECF3C0, void* pData, const char* name, bool isDisplayObj);
DEFINE_MEMBER_FN_4(GetMember, bool, 0x00ECF700, void* pData, const char* name, Value* pValue, bool isDisplayObj);
DEFINE_MEMBER_FN_4(SetMember, bool, 0x00ECFB00, void* pData, const char* name, const Value& pValue, bool isDisplayObj);
DEFINE_MEMBER_FN_6(Invoke, bool, 0x00ECFF20, void* pData, Value* result, const char* name, const Value* args, unsigned long long numArgs, bool isDisplayObj);
DEFINE_MEMBER_FN_4(CreateEmptyMovieClip, bool, 0x00ED3640, void* pData, Value* pValue, const char* instanceName, int depth);
DEFINE_MEMBER_FN_6(AttachMovie, bool, 0x00ED3900, void* pData, Value* pValue, const char* symbolName, const char* instanceName, int depth, const void* initArgs);
DEFINE_MEMBER_FN_1(GetArraySize, unsigned int, 0x00ED1200, void* pData);
DEFINE_MEMBER_FN_2(SetArraySize, bool, 0x00ED1210, void* pData, unsigned int size);
DEFINE_MEMBER_FN_3(GetElement, bool, 0x00ED1230, void* pData, unsigned int index, Value* value);
DEFINE_MEMBER_FN_3(SetElement, bool, 0x00ED12C0, void* pData, unsigned int index, const Value& value);
DEFINE_MEMBER_FN_2(PushBack, bool, 0x00ED1500, void* pData, const Value& value);
DEFINE_MEMBER_FN_2(PopBack, bool, 0x00ED1560, void* pData, Value* value);
DEFINE_MEMBER_FN_3(RemoveElements, bool, 0x00ED1610, void* pData, unsigned idx, int count);
DEFINE_MEMBER_FN_4(VisitElements, void, 0x00ED1320, void* pData, ArrVisitor* visitor, unsigned long idx, int count);
DEFINE_MEMBER_FN_3(VisitMembers, void, 0x00ED0AC0, void* pData, ObjVisitor* visitor, bool isDisplayObj);
DEFINE_MEMBER_FN_3(HasMember, bool, 0x00ECFFC0, void* pData, const char* name, bool isDisplayObj);
DEFINE_MEMBER_FN_4(GetMember, bool, 0x00ED0300, void* pData, const char* name, Value* pValue, bool isDisplayObj);
DEFINE_MEMBER_FN_4(SetMember, bool, 0x00ED0700, void* pData, const char* name, const Value& pValue, bool isDisplayObj);
DEFINE_MEMBER_FN_6(Invoke, bool, 0x00ED0B20, void* pData, Value* result, const char* name, const Value* args, unsigned long long numArgs, bool isDisplayObj);
DEFINE_MEMBER_FN_4(CreateEmptyMovieClip, bool, 0x00ED4240, void* pData, Value* pValue, const char* instanceName, int depth);
DEFINE_MEMBER_FN_6(AttachMovie, bool, 0x00ED4500, void* pData, Value* pValue, const char* symbolName, const char* instanceName, int depth, const void* initArgs);
DEFINE_MEMBER_FN_1(GetArraySize, unsigned int, 0x00ED1E00, void* pData);
DEFINE_MEMBER_FN_2(SetArraySize, bool, 0x00ED1E10, void* pData, unsigned int size);
DEFINE_MEMBER_FN_3(GetElement, bool, 0x00ED1E30, void* pData, unsigned int index, Value* value);
DEFINE_MEMBER_FN_3(SetElement, bool, 0x00ED1EC0, void* pData, unsigned int index, const Value& value);
DEFINE_MEMBER_FN_2(PushBack, bool, 0x00ED2100, void* pData, const Value& value);
DEFINE_MEMBER_FN_2(PopBack, bool, 0x00ED2160, void* pData, Value* value);
DEFINE_MEMBER_FN_3(RemoveElements, bool, 0x00ED2210, void* pData, unsigned idx, int count);
DEFINE_MEMBER_FN_4(VisitElements, void, 0x00ED1F20, void* pData, ArrVisitor* visitor, unsigned long idx, int count);
DEFINE_MEMBER_FN_3(VisitMembers, void, 0x00ED16C0, void* pData, ObjVisitor* visitor, bool isDisplayObj);
// DeleteMember TBD
DEFINE_MEMBER_FN_3(GetText, bool, 0x00ED32D0, void* pData, Value* value, bool html);
DEFINE_MEMBER_FN_3(SetText, bool, 0x00ED3430, void* pData, const char* text, bool html);
DEFINE_MEMBER_FN_3(SetTextW, bool, 0x00ED3550, void* pData, const wchar_t* text, bool html);
DEFINE_MEMBER_FN_3(GotoAndPlayL, bool, 0x00ED3DB0, void* pData, const char* frame, bool stop);
DEFINE_MEMBER_FN_3(GotoAndPlay, bool, 0x00ED3EB0, void* pData, unsigned frame, bool stop);
DEFINE_MEMBER_FN_2(GetParent, bool, 0x00ED1B30, void* pData, Value* value);
DEFINE_MEMBER_FN_3(GetText, bool, 0x00ED3ED0, void* pData, Value* value, bool html);
DEFINE_MEMBER_FN_3(SetText, bool, 0x00ED4030, void* pData, const char* text, bool html);
DEFINE_MEMBER_FN_3(SetTextW, bool, 0x00ED4150, void* pData, const wchar_t* text, bool html);
DEFINE_MEMBER_FN_3(GotoAndPlayL, bool, 0x00ED49B0, void* pData, const char* frame, bool stop);
DEFINE_MEMBER_FN_3(GotoAndPlay, bool, 0x00ED4AB0, void* pData, unsigned frame, bool stop);
DEFINE_MEMBER_FN_2(GetParent, bool, 0x00ED2730, void* pData, Value* value);
// GetDisplayInfo TBD
// SetDisplayInfo TBD
// GetDisplayMatrix TBD
// SetDisplayMatrix TBD
// GetColorTransform TBD
// SetColorTransform TBD

DEFINE_MEMBER_FN_2(ObjectAddRef, void, 0x00ECF260, Value* value, void* pData);
DEFINE_MEMBER_FN_2(ObjectRelease, void, 0x00ECF300, Value* value, void* pData);
DEFINE_MEMBER_FN_2(ObjectAddRef, void, 0x00ECFE60, Value* value, void* pData);
DEFINE_MEMBER_FN_2(ObjectRelease, void, 0x00ECFF00, Value* value, void* pData);

MovieImpl* pMovieRoot;
};
Expand Down

0 comments on commit 81d35d3

Please sign in to comment.