use gamedata instead of CSGO_WIN

This commit is contained in:
rtldg 2021-05-09 04:19:40 +00:00 committed by GitHub
parent 502592814d
commit 2fab98b784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
//#define DEBUG //#define DEBUG
//#define CSGO_WIN
#define PLUGIN_NAME "EventQueue fix" #define PLUGIN_NAME "EventQueue fix"
#define PLUGIN_AUTHOR "carnifex" #define PLUGIN_AUTHOR "carnifex"
@ -166,11 +165,10 @@ void LoadDHooks()
int ibuff = gamedataConf.GetOffset("m_angRotation"); int ibuff = gamedataConf.GetOffset("m_angRotation");
g_iRefOffset = ibuff + m_RefEHandleOff; g_iRefOffset = ibuff + m_RefEHandleOff;
#if defined CSGO_WIN if (gamedataConf.GetOffset("FindEntityByName_StaticCall") == 1)
StartPrepSDKCall(SDKCall_Static); StartPrepSDKCall(SDKCall_Static);
#else else
StartPrepSDKCall(SDKCall_EntityList); StartPrepSDKCall(SDKCall_EntityList);
#endif
PrepSDKCall_SetFromConf(gamedataConf, SDKConf_Signature, "FindEntityByName"); PrepSDKCall_SetFromConf(gamedataConf, SDKConf_Signature, "FindEntityByName");
PrepSDKCall_SetReturnInfo(SDKType_PlainOldData, SDKPass_ByValue); PrepSDKCall_SetReturnInfo(SDKType_PlainOldData, SDKPass_ByValue);