From cf29840c1ac0420f1d1b97f5c53de9cacfc2edc6 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 16 Aug 2018 19:54:46 -0400 Subject: [PATCH] update engine matching code --- vnrhook/src/engine/match.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnrhook/src/engine/match.cc b/vnrhook/src/engine/match.cc index 9703975..2881a4a 100644 --- a/vnrhook/src/engine/match.cc +++ b/vnrhook/src/engine/match.cc @@ -100,7 +100,7 @@ bool DetermineEngineByFile1() } // Artikash 8/9/2018: Renpy - sample game https://vndb.org/v19843 - if (GetModuleHandleW(L"python27")) + if (Util::CheckFile(L"*.py")) { InsertRenpyHook(); return true; @@ -164,7 +164,7 @@ bool DetermineEngineByFile1() } // jichi 10/12/2013: Restore wolf engine // jichi 10/18/2013: Check for data/*.wolf - if (Util::CheckFile(L"data.wolf") || Util::CheckFile(L"data\\*.wolf")) { + if (Util::CheckFile(L"data.wolf") || Util::CheckFile(L"data\\*.wolf") || Util::CheckFile(L"data\\basicdata\\cdatabase.dat")) { InsertWolfHook(); return true; }