Skip to content

Commit 3a7d087

Browse files
authored
add normal recalculation hooks for 1170
1 parent 73869d7 commit 3a7d087

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/GameEventHandler.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ namespace plugin {
265265
sizeof(signature1170)) == 0) {
266266
UpdateFaceModel = (void (*)(RE::NiNode *)) REL::Offset(0x435c50).address();
267267
NIOVTaskUpdateSkinPartitionvtable = (uint64_t) skee64_info.lpBaseOfDll + 0x1d4c60;
268+
ApplyMorphHookFaceNormalsDetour = (void (*)(void *e, RE::TESNPC *, RE::BGSHeadPart *, RE::BSFaceGenNiNode *))(
269+
(uint64_t) skee64_info.lpBaseOfDll + 0xb9480);
270+
DetourTransactionBegin();
271+
DetourUpdateThread(GetCurrentThread());
272+
DetourAttach(&(PVOID &) ApplyMorphHookFaceNormalsDetour, &ApplyMorphHookFaceNormals);
273+
DetourTransactionCommit();
268274
ApplyMorphsHookFaceNormalsDetour =
269275
(void (*)(void *, RE::TESActorBase *, RE::BSFaceGenNiNode *))((uint64_t) skee64_info.lpBaseOfDll + 0xb9a40);
270276
DetourTransactionBegin();

0 commit comments

Comments
 (0)