Fix small mistake

Input hooking must be done during SDK init, only DX should be initialized later due to late binding of game pointers.
This commit is contained in:
Kawe Mazidjatari 2023-01-30 21:44:28 +01:00
parent f0512d7f92
commit fd5d09d843
3 changed files with 5 additions and 2 deletions

View File

@ -51,6 +51,10 @@ void SDK_Init()
Systems_Init();
WinSys_Attach();
#ifndef DEDICATED
Input_Init();
#endif // !DEDICATED
}
//#############################################################################

View File

@ -97,7 +97,6 @@ bool CModAppSystemGroup::Create(CModAppSystemGroup* pModAppSystemGroup)
CSuggest(map.first, map.second->GetFlags()));
}
Input_Init();
DirectX_Init();
#endif // !DEDICATED

View File

@ -50,8 +50,8 @@ class VApplication : public IDetour
{
LogFunAdr("CModAppSystemGroup::Main", p_CModAppSystemGroup_Main.GetPtr());
LogFunAdr("CModAppSystemGroup::Create", p_CModAppSystemGroup_Create.GetPtr());
LogFunAdr("CSourceAppSystemGroup::Create", p_CSourceAppSystemGroup__Create.GetPtr());
LogFunAdr("CSourceAppSystemGroup::PreInit", p_CSourceAppSystemGroup__PreInit.GetPtr());
LogFunAdr("CSourceAppSystemGroup::Create", p_CSourceAppSystemGroup__Create.GetPtr());
}
virtual void GetFun(void) const
{