IGameResources* GetGameResources( )
{
IGameResources* res;
static DWORD funcadd = NULL;
if( !funcadd )
funcadd = Utils::FindPattern( (DWORD) GetModuleHandle( _T("client.dll") ), 0x5F600, (PBYTE) "\xA1\x00\x00\x00\x00\x85\xC0\x74\x06\x05", "x????xxxxx" );
typedef IGameResources* (*GGR_t) (void);
GGR_t GGR = (GGR_t) funcadd;
return GGR();
}
Announcement
Collapse
No announcement yet.
How does I IGameResources?
Collapse
X
-
How does I IGameResources?
PHP Code:Tags: None
-
CSS:
Code:2406F6D0 A1 C0A33B24 MOV EAX,DWORD PTR DS:[243BA3C0] 2406F6D5 85C0 TEST EAX,EAX 2406F6D7 74 06 JE SHORT client.2406F6DF 2406F6D9 05 60040000 ADD EAX,460 2406F6DE C3 RETN 2406F6DF 33C0 XOR EAX,EAX 2406F6E1 C3 RETN client Base 24000000 Size 479000 \xA1\x00\x00\x00\x00\x85\xC0\x74\x06\x05\x00\x00\x00\x00\xC3\x33\xC0\xC3 x????xxxxx????xxxx GetModuleHandle( "client" ) + 0x6f6d0; // Address 2406f6d0 Base 24000000
Code:DWORD dwGameResources = *( (PDWORD) 0x243BA3C0 ); My_GameResources = (IGameResources*) ( dwGameResources + 0x460 );
Last edited by Lawgiver; 11-04-2009, 10:55 AM.
Comment
-
Law, what you are failing to understand ( no offense though ) with that is what you are sigscanning for originally (or what you have the address for) is a function that returns igameresources. Therefore, there's no need to duplicate the functionality of that function, simply call the function and IGameResources* is it's retval :)Last edited by Xeno123; 11-04-2009, 03:42 AM.
Comment
-
Originally posted by Xeno123 View PostLaw, what you are failing to understand ( no offense though ) with that is what you are sigscanning for originally (or what you have the address for) is a function that returns igameresources. Therefore, there's no need to duplicate the functionality of that function, simply call the function and IGameResources* is it's retval :)
I've just redone the function in my code, what's wrong with it? :P
I often do that, WeaponIDToAlias, GetBaseCombatWeapon, GetWeaponID... ;)
I assume it goes into coding style? :)
Comment
Comment