diff --git a/SKSE/Plugins/EnderalSE.dll b/SKSE/Plugins/EnderalSE.dll index 91fdcee0..802dfa88 100644 --- a/SKSE/Plugins/EnderalSE.dll +++ b/SKSE/Plugins/EnderalSE.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9e5fea3850113301eb73a3e71e93e383969a09e1d86bc1a0cbc5f719304ca627 +oid sha256:c8d35facd4bb9cdb353723f53a96e7222fd14b9558b0ba143eea3f06522a1a07 size 733184 diff --git a/source/Enderal DLL/src/BinkInterruptPatch.h b/source/Enderal DLL/src/BinkInterruptPatch.h index 72b9c1d5..b775e134 100644 --- a/source/Enderal DLL/src/BinkInterruptPatch.h +++ b/source/Enderal DLL/src/BinkInterruptPatch.h @@ -7,9 +7,11 @@ namespace BinkInterruptPatch { struct BinkListener { - static bool thunk() + static bool thunk(RE::BGSMoviePlayer* moviePlayer, bool bInterruptible) { - auto result = func(); + if (!bInterruptible) { + return true; + } if (SKSE::WinAPI::GetKeyState(VK_SPACE) & 0x8000 || SKSE::WinAPI::GetKeyState(VK_ESCAPE) & 0x8000 || SKSE::WinAPI::GetKeyState(VK_LBUTTON) & 0x8000 || SKSE::WinAPI::GetKeyState(VK_RBUTTON) & 0x8000 || SKSE::WinAPI::GetKeyState(VK_LMENU) & 0x8000) { return false; @@ -26,14 +28,14 @@ namespace BinkInterruptPatch } } - return result; + return true; } static inline REL::Relocation func; }; void Install() { - REL::Relocation target{ REL::RelocationID(87887, 90256), REL::Relocate(0x9F, 0x16F) }; + REL::Relocation target{ REL::RelocationID(87890, 90259), REL::Relocate(0x22, 0x21) }; auto& trampoline = SKSE::GetTrampoline(); SKSE::AllocTrampoline(14);