mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 02:18:35 +00:00
remove other 32bit-isms from sdktools
This commit is contained in:
parent
cdc837fbbb
commit
8612720108
@ -584,7 +584,7 @@ bool CHookManager::SendFile(const char *filename, unsigned int transferID)
|
|||||||
#if !defined CLIENTVOICE_HOOK_SUPPORT
|
#if !defined CLIENTVOICE_HOOK_SUPPORT
|
||||||
bool CHookManager::ProcessVoiceData(CLC_VoiceData *msg)
|
bool CHookManager::ProcessVoiceData(CLC_VoiceData *msg)
|
||||||
{
|
{
|
||||||
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - 4);
|
IClient *pClient = (IClient *)((intptr_t)(META_IFACEPTR(IClient)) - sizeof(intptr_t));
|
||||||
if (pClient == NULL)
|
if (pClient == NULL)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -754,7 +754,7 @@ CEntityFactoryDictionary *GetEntityFactoryDictionary()
|
|||||||
|
|
||||||
// Get real address of function
|
// Get real address of function
|
||||||
// Address of signature + offset of relative offset + sizeof(int32_t) offset + relative offset
|
// Address of signature + offset of relative offset + sizeof(int32_t) offset + relative offset
|
||||||
addr = (void *)((intptr_t)addr + offset + 4 + funcOffset);
|
addr = (void *)((intptr_t)addr + offset + sizeof(intptr_t) + funcOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
pWrapper = g_pBinTools->CreateCall(addr, CallConv_Cdecl, &retData, NULL, 0);
|
pWrapper = g_pBinTools->CreateCall(addr, CallConv_Cdecl, &retData, NULL, 0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user