![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#10 | |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
Quote:
but i'll try to explain: Code:
class CSomeClass
{
public:
int n1;
int n2;
void DoSomething();
};
offset of n2 == 4 BUT Code:
class CSomeClass
{
public:
int n1;
int n2;
virtual void DoSomething();
};
offset of n2 == 8 and at zero offset there is pointer to array of virtual functions so, almost every c++ class inside l2server has virtual functions and they are all different.. CCreature - one address, CNPC - another, User - 0x00602C04 so we can check by dword (qword in x64) value at offset 0 what this class is. |
|
|
|
|
|