4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
532 B

#include "Hooks_Data.h"
#include "GameData.h"
#include "PluginManager.h"
#include "skse64_common/BranchTrampoline.h"
UInt32 DataHandler::LoadScripts_Hook()
{
UInt32 ret = CALL_MEMBER_FN(this, LoadScripts)();
PluginManager::Dispatch_Message(0, SKSEMessagingInterface::kMessage_DataLoaded, (void*)NULL, 0, NULL);
return ret;
}
RelocAddr<uintptr_t> LoadScripts_Enter(0x005D7A20 + 0x3EB);
void Hooks_Data_Commit(void)
{
g_branchTrampoline.Write5Call(LoadScripts_Enter.GetUIntPtr(), GetFnAddr(&DataHandler::LoadScripts_Hook));
}