diff --git a/Creation Kit Platform Extended Core/Patches/FO4/ReplaceBSPointerHandleAndManagerF4.cpp b/Creation Kit Platform Extended Core/Patches/FO4/ReplaceBSPointerHandleAndManagerF4.cpp index 27ff231..026c892 100644 --- a/Creation Kit Platform Extended Core/Patches/FO4/ReplaceBSPointerHandleAndManagerF4.cpp +++ b/Creation Kit Platform Extended Core/Patches/FO4/ReplaceBSPointerHandleAndManagerF4.cpp @@ -903,8 +903,24 @@ namespace CreationKitPlatformExtended _CONSOLE("CreationKitPlatformExtended::Experimental::BSPointerHandle: %llu patches applied in %llums", total_patches, duration); } else + { BSPointerHandleManagerCurrent::PointerHandleManagerCurrentId = 0; + { + ScopeRelocator textSection; + + auto addr = (uintptr_t)_RELDATA_RAV(0); + // Preparation, removal of all embedded pieces of code + lpRelocator->PatchNop(addr + 12, 0x7A); + lpRelocator->PatchMovFromRax(addr + 5, _RELDATA_RAV(1)); + } + + lpRelocator->DetourCall(_RELDATA_RAV(0), + (uintptr_t)&BSPointerHandleManager_Original::InitSDM); + lpRelocator->DetourCall(_RELDATA_RAV(2), + (uintptr_t)&BSPointerHandleManager_Original::KillSDM); + } + return true; } diff --git a/Creation Kit Platform Extended Core/Version/build_version.txt b/Creation Kit Platform Extended Core/Version/build_version.txt index f0a3f97..595dc72 100644 Binary files a/Creation Kit Platform Extended Core/Version/build_version.txt and b/Creation Kit Platform Extended Core/Version/build_version.txt differ diff --git a/Creation Kit Platform Extended Core/Version/resource_version2.h b/Creation Kit Platform Extended Core/Version/resource_version2.h index 4a6d33e..53b4bf7 100644 Binary files a/Creation Kit Platform Extended Core/Version/resource_version2.h and b/Creation Kit Platform Extended Core/Version/resource_version2.h differ