From 46c4f163baa8f8ff4eed263a641e0b6a6f43f801 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 15 Sep 2019 12:58:15 -0400 Subject: [PATCH] better tanuki detection --- texthook/engine/match32.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/texthook/engine/match32.cc b/texthook/engine/match32.cc index aae1470..f21b6e4 100644 --- a/texthook/engine/match32.cc +++ b/texthook/engine/match32.cc @@ -595,6 +595,10 @@ bool DetermineEngineOther() // Put the patterns that might break other games at last bool DetermineEngineAtLast() { + if (Util::CheckFile(L"*.g2")) { + InsertTanukiHook(); + return true; + } 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