mirror of
https://github.com/hermansimensen/eventqueue-fix.git
synced 2025-12-06 18:08:27 +00:00
Merge pull request #7 from rtldg/gamedata-for-csgowin
Use gamedata instead of CSGO_WIN
This commit is contained in:
commit
21a6858e1d
@ -44,6 +44,10 @@
|
||||
"windows" "12"
|
||||
"linux" "12"
|
||||
}
|
||||
"FindEntityByName_StaticCall"
|
||||
{
|
||||
"windows" "1"
|
||||
}
|
||||
}
|
||||
}
|
||||
"cstrike"
|
||||
@ -77,4 +81,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
|
||||
//#define DEBUG
|
||||
//#define CSGO_WIN
|
||||
|
||||
#define PLUGIN_NAME "EventQueue fix"
|
||||
#define PLUGIN_AUTHOR "carnifex"
|
||||
@ -166,11 +165,10 @@ void LoadDHooks()
|
||||
int ibuff = gamedataConf.GetOffset("m_angRotation");
|
||||
g_iRefOffset = ibuff + m_RefEHandleOff;
|
||||
|
||||
#if defined CSGO_WIN
|
||||
if (gamedataConf.GetOffset("FindEntityByName_StaticCall") == 1)
|
||||
StartPrepSDKCall(SDKCall_Static);
|
||||
#else
|
||||
else
|
||||
StartPrepSDKCall(SDKCall_EntityList);
|
||||
#endif
|
||||
|
||||
PrepSDKCall_SetFromConf(gamedataConf, SDKConf_Signature, "FindEntityByName");
|
||||
PrepSDKCall_SetReturnInfo(SDKType_PlainOldData, SDKPass_ByValue);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user