MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / ScanModuleSignature

Function ScanModuleSignature

src/Engine/Engine.cpp:508–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506#pragma region Helper
507
508DWORD ScanModuleSignature(HMODULE Module, std::string_view Signature, const char* PatchName, int FunctionStartCheckCount, bool ShowError)
509{
510 DWORD Address = MemoryHelper::FindSignatureAddress(Module, Signature, FunctionStartCheckCount);
511 if (Address == 0 && ShowErrors && ShowError)
512 {
513 std::string ErrorMessage = "Error: Unable to find signature for patch: ";
514 ErrorMessage += PatchName;
515 MessageBoxA(NULL, ErrorMessage.c_str(), "EchoPatch", MB_ICONERROR);
516 }
517 return Address;
518}
519
520static inline bool ShouldClampRagdoll(int thisPtr)
521{

Calls 2

FindSignatureAddressFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected