Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ZHMModSDK/Include/Hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ class ZHMSDK_API Hooks {
ZAsyncContext* ctx, const SHttpRequestBehavior& behavior
)>* ZUserChannelContractsProxyBase_GetForPlay2;

static Hook<void*(void* th, void* newData)>* ZArray_PushBack;

static Hook<ZPFObstacleHandle*(
ZPathfinder* th,
ZPFObstacleHandle* result,
Expand Down Expand Up @@ -255,4 +257,4 @@ class ZHMSDK_API Hooks {
Scaleform::GFx::AS3::FlashUI::OutputMessageType type,
const char* msg
)>* Scaleform_GFx_AS3_MovieRoot_Output;
};
};
1 change: 1 addition & 0 deletions ZHMModSDK/Include/Logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct LoggerList {
};

ZHMSDK_API LoggerList GetLoggers();
ZHMSDK_API void FlushLoggers();

namespace Logger {
template <typename... Args>
Expand Down
8 changes: 8 additions & 0 deletions ZHMModSDK/Src/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down