Call_Void_ItemInfo
Is Call_Void_ItemInfo called when using RegisterHam(Ham_Item_GetItemInfo, "weapon_" "Function")?
Code:
Ham_Item_GetItemInfo "breaks" any weapon it's hooked for on linux. I'm trying to find out why it does that. I have read that it's not actually legal to mix reinterpret_cast<> with pointers to void. If Call_Void_ItemInfo is called by RegisterHam, could the bug be caused by the reinterpret_cast? It works on windows OS, but not on linux. |
Re: Call_Void_ItemInfo
No, it's used with ExecuteHam.
What you're looking for is "void Hook_Void_ItemInfo(Hook *hook, void *pthis, void *iteminfo)" in hook_callback.cpp, but the handler looks okay. |
Re: Call_Void_ItemInfo
All the other void variables (void *other or void *cb1 ..etc) use:
Code:
Where as iteminfo (void *iteminfo) uses: Code:
Does P_ITEMINFO not need a reinterpret_cast? |
| All times are GMT -4. The time now is 22:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.