From 947049b7e62256d3590b9c9101607de1897c97b0 Mon Sep 17 00:00:00 2001 From: Amos <48657826+Mauler125@users.noreply.github.com> Date: Mon, 27 Dec 2021 03:27:22 +0100 Subject: [PATCH] Add RPak async load pattern --- r5dev/common/opcodes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/r5dev/common/opcodes.h b/r5dev/common/opcodes.h index 195278bc..cf421447 100644 --- a/r5dev/common/opcodes.h +++ b/r5dev/common/opcodes.h @@ -105,6 +105,9 @@ namespace ADDRESS p_RTech_UnloadAsset = g_mGameDll.FindPatternSIMD((std::uint8_t*)"\x48\x83\xEC\x28\x48\x85\xD2\x74\x40\x48\x8B\x05\x00\x00\x00\x00", "xxxxxxxxxxxx????"); void (*RTech_UnloadAsset)(int64_t a1, int64_t a2) = (void (*)(int64_t, int64_t))p_RTech_UnloadAsset.GetPtr(); /*48 83 EC 28 48 85 D2 74 40 48 8B 05 ? ? ? ?*/ + ADDRESS p_RTech_AsyncLoad = g_mGameDll.FindPatternSIMD((std::uint8_t*)"\x40\x53\x48\x83\xEC\x40\x48\x89\x6C\x24\x00\x41\x0F\xB6\xE9", "xxxxxxxxxx?xxxx"); + unsigned int (*RTech_AsyncLoad)(void* Src, __int64 a2, int a3, char pakfile) = (unsigned int (*)(void*, __int64, int, char))p_RTech_AsyncLoad.GetPtr(); /*40 53 48 83 EC 40 48 89 6C 24 ? 41 0F B6 E9*/ + void PrintOAddress() // Test the sigscan results { std::cout << "+--------------------------------------------------------+" << std::endl;