| 506 | #pragma region Helper |
| 507 | |
| 508 | DWORD 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 | |
| 520 | static inline bool ShouldClampRagdoll(int thisPtr) |
| 521 | { |
no test coverage detected