improve bgi support

This commit is contained in:
Akash Mozumdar 2019-06-12 02:58:47 -04:00
parent 58c80c82ba
commit ce88341cce

View File

@ -2137,8 +2137,9 @@ bool InsertBGI3Hook()
// BGI1 can exist in both old and new games // BGI1 can exist in both old and new games
// BGI2 only exist in new games // BGI2 only exist in new games
// Insert BGI2 first. // Insert BGI2 first.
// Artikash 6/12/2019: In newer games neither exists, but WideCharToMultiByte works, so insert that if BGI2 fails.
bool InsertBGIHook() bool InsertBGIHook()
{ return InsertBGI2Hook() || InsertBGI1Hook(); } { return InsertBGI2Hook() || (PcHooks::hookOtherPcFunctions(), InsertBGI1Hook()); }
/******************************************************************************************** /********************************************************************************************
Reallive hook: Reallive hook: