|
这是个我原创的笑话,估计只有玩底层的人才能看懂。
- #include <headfile.h>
- #define MODE_EASY 0
- #define MODE_HARD 1
- #define MODE_HELL 2
- typedef struct _PERSON_INFO
- {
- int sex; //1=male, 0=female
- int MaxHeight;
- int MaxRich;
- int Face;
- int Mode;
- }PERSON_INFO, PPERSON_INFO;
- STATUS Proxy_CreatePerson(WCHAR *CurrentName, PPERSON_INFO pi)
- {
- if(!wcscmp(CurrentName,L"Tesla.Angela"))
- {
- pi->sex = 1;
- pi->MaxHeight = 185; //cm
- pi->MaxRich = -1; //endless money
- pi->Face = 100; //most handsome
- pi->Mode = MODE_EASY;
- }
- return Ori_CreatePerson(CurrentName,pi);
- }
- void main()
- {
- HookFunction(CreatePerson,Proxy_CreatePerson,Ori_CreatePerson);
- }
复制代码 |
|