Fixed SDKHooks thinking a hook type was supported when gamedata missing (r=voided).
--HG-- extra : rebase_source : 88a08b03ecbbbaa3bf1c91db30c2e08ceb106e95
This commit is contained in:
parent
dab2932550
commit
50083048f6
@ -39,17 +39,21 @@
|
|||||||
offset = 0; \
|
offset = 0; \
|
||||||
g_pGameConf->GetOffset(#gamedataname, &offset); \
|
g_pGameConf->GetOffset(#gamedataname, &offset); \
|
||||||
if (offset > 0) \
|
if (offset > 0) \
|
||||||
|
{ \
|
||||||
SH_MANUALHOOK_RECONFIGURE(gamedataname, offset, 0, 0); \
|
SH_MANUALHOOK_RECONFIGURE(gamedataname, offset, 0, 0); \
|
||||||
SET_PRE_##supportsPre(gamedataname) \
|
SET_PRE_##supportsPre(gamedataname) \
|
||||||
SET_POST_##supportsPost(gamedataname)
|
SET_POST_##supportsPost(gamedataname) \
|
||||||
|
}
|
||||||
|
|
||||||
#define CHECKOFFSET_W(gamedataname, supportsPre, supportsPost) \
|
#define CHECKOFFSET_W(gamedataname, supportsPre, supportsPost) \
|
||||||
offset = 0; \
|
offset = 0; \
|
||||||
g_pGameConf->GetOffset("Weapon_"#gamedataname, &offset); \
|
g_pGameConf->GetOffset("Weapon_"#gamedataname, &offset); \
|
||||||
if (offset > 0) \
|
if (offset > 0) \
|
||||||
|
{ \
|
||||||
SH_MANUALHOOK_RECONFIGURE(Weapon_##gamedataname, offset, 0, 0); \
|
SH_MANUALHOOK_RECONFIGURE(Weapon_##gamedataname, offset, 0, 0); \
|
||||||
SET_PRE_##supportsPre(Weapon##gamedataname) \
|
SET_PRE_##supportsPre(Weapon##gamedataname) \
|
||||||
SET_POST_##supportsPost(Weapon##gamedataname)
|
SET_POST_##supportsPost(Weapon##gamedataname) \
|
||||||
|
}
|
||||||
|
|
||||||
#define HOOKLOOP \
|
#define HOOKLOOP \
|
||||||
for(int i = g_HookList.Count() - 1; i >= 0; i--)
|
for(int i = g_HookList.Count() - 1; i >= 0; i--)
|
||||||
|
Loading…
Reference in New Issue
Block a user