From 40fce13b1cbe3186853b8a2988c131fbd0e2dd06 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: Thu, 26 Dec 2024 16:07:09 +0800 Subject: [PATCH] . --- cpp/LunaHook/LunaHook/enginecontrol.cpp | 9 ++++++--- cpp/version.cmake | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cpp/LunaHook/LunaHook/enginecontrol.cpp b/cpp/LunaHook/LunaHook/enginecontrol.cpp index 5e2c9994..0578d48a 100644 --- a/cpp/LunaHook/LunaHook/enginecontrol.cpp +++ b/cpp/LunaHook/LunaHook/enginecontrol.cpp @@ -94,9 +94,12 @@ bool checkengine() if (attached) { jittypedefault = m->jittype; - spDefault.isjithook = true; - spDefault.minAddress = 0; - spDefault.maxAddress = -1; + if (jittypedefault != JITTYPE::PC) + { + spDefault.isjithook = true; + spDefault.minAddress = 0; + spDefault.maxAddress = -1; + } } if (m->is_engine_certain) { diff --git a/cpp/version.cmake b/cpp/version.cmake index c122196d..a944a058 100644 --- a/cpp/version.cmake +++ b/cpp/version.cmake @@ -1,7 +1,7 @@ set(VERSION_MAJOR 6) set(VERSION_MINOR 15) -set(VERSION_PATCH 4) +set(VERSION_PATCH 5) set(VERSION_REVISION 0) set(LUNA_VERSION "{${VERSION_MAJOR},${VERSION_MINOR},${VERSION_PATCH},${VERSION_REVISION}}") add_library(VERSION_DEF ${CMAKE_CURRENT_LIST_DIR}/version_def.cpp)