From 72ad51f0399e226af49404cd0e5c079513490ac4 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 9 Aug 2022 00:02:27 -0400 Subject: [PATCH] tighten abel detection --- texthook/engine/match32.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/texthook/engine/match32.cc b/texthook/engine/match32.cc index aa0c555..fffc4c7 100644 --- a/texthook/engine/match32.cc +++ b/texthook/engine/match32.cc @@ -629,10 +629,9 @@ bool DetermineEngineAtLast() } if (Util::CheckFile(L"MovieTexture.dll") && (InsertPensilHook() || Insert2RMHook())) // MovieTexture.dll also exists in 2RM games such as 母子愛2体験版, which is checked first return true; - if ((Util::CheckFile(L"system") && Util::CheckFile(L"system.dat")) || Util::CheckFile(L"*01")) { // jichi 7/31/2015 & Artikash 6/15/2018 - InsertAbelHook(); - return true; - } + if ((Util::CheckFile(L"system") && Util::CheckFile(L"system.dat")) || Util::CheckFile(L"*01")) // jichi 7/31/2015 & Artikash 6/15/2018 + if (InsertAbelHook()) + return true; if (Util::CheckFile(L"data\\*.cpk")) { // jichi 12/2/2014 Insert5pbHook(); return true;