|
|
@ -48,7 +48,7 @@ void *COM_FunctionFromName_SR( void *hInstance, const char *pName ) |
|
|
|
const char *COM_OffsetNameForFunction( void *function ) |
|
|
|
const char *COM_OffsetNameForFunction( void *function ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
static string sname; |
|
|
|
static string sname; |
|
|
|
Q_snprintf( sname, MAX_STRING, "ofs:%d", (int)(void*)(function - (void*)svgame.dllFuncs.pfnGameInit) ); |
|
|
|
Q_snprintf( sname, MAX_STRING, "ofs:%d", (size_t)((byte*)function - (byte*)svgame.dllFuncs.pfnGameInit) ); |
|
|
|
MsgDev( D_NOTE, "COM_OffsetNameForFunction %s\n", sname ); |
|
|
|
MsgDev( D_NOTE, "COM_OffsetNameForFunction %s\n", sname ); |
|
|
|
return sname; |
|
|
|
return sname; |
|
|
|
} |
|
|
|
} |
|
|
|