diff --git a/ZHMModSDK/Include/Hooks.h b/ZHMModSDK/Include/Hooks.h index cb5fcc3c..075936c8 100644 --- a/ZHMModSDK/Include/Hooks.h +++ b/ZHMModSDK/Include/Hooks.h @@ -206,6 +206,8 @@ class ZHMSDK_API Hooks { ZAsyncContext* ctx, const SHttpRequestBehavior& behavior )>* ZUserChannelContractsProxyBase_GetForPlay2; + static Hook* ZArray_PushBack; + static Hook* Scaleform_GFx_AS3_MovieRoot_Output; -}; \ No newline at end of file +}; diff --git a/ZHMModSDK/Include/Logging.h b/ZHMModSDK/Include/Logging.h index bd0e0b11..28befec3 100644 --- a/ZHMModSDK/Include/Logging.h +++ b/ZHMModSDK/Include/Logging.h @@ -14,6 +14,7 @@ struct LoggerList { }; ZHMSDK_API LoggerList GetLoggers(); +ZHMSDK_API void FlushLoggers(); namespace Logger { template diff --git a/ZHMModSDK/Src/Hooks.cpp b/ZHMModSDK/Src/Hooks.cpp index bfee8a3b..d8786675 100644 --- a/ZHMModSDK/Src/Hooks.cpp +++ b/ZHMModSDK/Src/Hooks.cpp @@ -370,6 +370,14 @@ PATTERN_HOOK( ZAsyncContext* ctx, const SHttpRequestBehavior& behavior) ); +PATTERN_HOOK( + "\x40\x53\x57\x48\x83\xEC\x38\x48\x8B\xD9\x48\x89\x6C\x24\x58\x48\x89\x74\x24\x60\x48\x8B\xEA\x48\x8B\x71\x10\x48\x8B\xCE\x48\xC1\xE9\x3E\x80\xE1\x01\x74\x10\x48\x8B\xC6\x40\x0F\xB6\xFE\x48\xC1\xE8\x08\x0F\xB6\xD0\xEB\x24\x48\x8B\x7B\x08\x48\x8B\xD6\x48\x2B\x3B\x48\xB8\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x3F\x48\x23\xD0\x48\xC1\xFF\x03\x48\x2B\x13\x8B\xFF\x48\xC1\xFA\x03\x8B\xC2\x48\x3B\xF8", + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + ZArray_PushBack, + void* (void* th, void* newData) +); + + PATTERN_HOOK( "\x48\x89\x5C\x24\x18\x55\x56\x57\x41\x56\x41\x57\x48\x83\xEC\x00\x45\x33\xFF\x49\x8B\xF1", "xxxxxxxxxxxxxxx?xxxxxx",