From 44a67490135cdab18f94734d095da7fc95d5c6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Sat, 21 Dec 2024 17:07:58 +0800 Subject: [PATCH] . --- cpp/LunaHook/LunaHook/enginecontrol.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cpp/LunaHook/LunaHook/enginecontrol.cpp b/cpp/LunaHook/LunaHook/enginecontrol.cpp index a77c674e..5e2c9994 100644 --- a/cpp/LunaHook/LunaHook/enginecontrol.cpp +++ b/cpp/LunaHook/LunaHook/enginecontrol.cpp @@ -91,13 +91,16 @@ bool checkengine() if (matched == false) continue; ConsoleOutput(TR[MatchedEngine], m->getenginename()); - if (m->is_engine_certain) + if (attached) { - ConsoleOutput(TR[ConfirmStop], m->getenginename()); jittypedefault = m->jittype; spDefault.isjithook = true; spDefault.minAddress = 0; spDefault.maxAddress = -1; + } + if (m->is_engine_certain) + { + ConsoleOutput(TR[ConfirmStop], m->getenginename()); return attached; }