From d99bc295d5e3d456218e439b70e2903e43398858 Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Tue, 8 Oct 2024 19:53:54 +0800 Subject: [PATCH] 1 --- fallguys/meta_api.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fallguys/meta_api.cpp b/fallguys/meta_api.cpp index ed7ae7a..24e81a0 100644 --- a/fallguys/meta_api.cpp +++ b/fallguys/meta_api.cpp @@ -434,7 +434,7 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME /* now */, auto sv_addr = (char*)LOCATE_FROM_SIGNATURE(engine, sv_Signature); if (!sv_addr) { - LOG_ERROR(PLID, "sv_models not found in engine dll!"); + LOG_ERROR(PLID, "sv not found in engine dll!"); return FALSE; } CDisasmFindGotPltTargetContext ctx = { 0 }; @@ -447,11 +447,16 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME /* now */, if (ctx.result) { sv = (decltype(sv))ctx.result; - break; } sv_models = (decltype(sv_models))((char*)sv + offset_sv_models); + if (!sv_models) + { + LOG_ERROR(PLID, "sv_models not found in engine dll!"); + return FALSE; + } + LOG_MESSAGE(PLID, "sv_models found at %p!", sv_models); }