From ce88341cce39d7f59460b7db3d7cb28761251d4e Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Wed, 12 Jun 2019 02:58:47 -0400 Subject: [PATCH] improve bgi support --- texthook/engine/engine.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/texthook/engine/engine.cc b/texthook/engine/engine.cc index 9af1b9c..49f4e20 100644 --- a/texthook/engine/engine.cc +++ b/texthook/engine/engine.cc @@ -2137,8 +2137,9 @@ bool InsertBGI3Hook() // BGI1 can exist in both old and new games // BGI2 only exist in new games // Insert BGI2 first. +// Artikash 6/12/2019: In newer games neither exists, but WideCharToMultiByte works, so insert that if BGI2 fails. bool InsertBGIHook() -{ return InsertBGI2Hook() || InsertBGI1Hook(); } +{ return InsertBGI2Hook() || (PcHooks::hookOtherPcFunctions(), InsertBGI1Hook()); } /******************************************************************************************** Reallive hook: