internal static bool Init()
        {
            IntPtr address = Game.FindPattern("85 D2 78 44 4C 8B 49 68 4D 85 C9 74 29 49 8B 81 ?? ?? ?? ??");

            if (AssertAddress(address, nameof(GetBoundIndexForBone)))
            {
                GetBoundIndexForBone = Marshal.GetDelegateForFunctionPointer <GetBoundIndexForBoneDelegate>(address);
            }

            return(!anyAssertFailed);
        }
示例#2
0
        internal static bool Init()
        {
            byte *address = MemoryFunctions.FindPattern("\x85\xD2\x78\x44\x4C\x8B\x49\x68\x4D\x85\xC9\x74\x29\x49\x8B\x81\x00\x00\x00\x00", "xxxxxxxxxxxxxxxx????");

            if (AssertAddress(address, nameof(GetBoundIndexForBone)))
            {
                GetBoundIndexForBone = Marshal.GetDelegateForFunctionPointer <GetBoundIndexForBoneDelegate>((IntPtr)address);
            }

            return(!anyAssertFailed);
        }