添加进入人物和退出人物hook

This commit is contained in:
小疯
2022-09-12 18:11:08 +08:00
parent 2ccdac8561
commit cdca473ec3
10 changed files with 590 additions and 78 deletions

50
src/sdk/SystemTime.h Normal file
View File

@@ -0,0 +1,50 @@
#pragma once
#ifndef __SYSTEMTIME_H__
#define __SYSTEMTIME_H__
#pragma pack(push, 0x01)
class CSystemTime
{
public:
static CSystemTime* G_CSystemTime(void)
{
return *(CSystemTime**)base::CSystemTime::s_systemTime_;
}
CSystemTime()
{
CallT<int>(base::CSystemTime::CSystemTime_make, this);
}
~CSystemTime()
{
CallT<int>(base::CSystemTime::CSystemTime_destroy, this);
}
int getCurSec()
{
return CallT<int>(base::CSystemTime::getCurSec, this);
}
int getCurTickCount()
{
return CallT<int>(base::CSystemTime::getCurTickCount, this);
}
int getCurDate()
{
return CallT<int>(base::CSystemTime::getCurDate, this);
}
int update()
{
return CallT<int>(base::CSystemTime::update, this);
}
};
#pragma pack(pop)
#endif // __SYSTEMTIME_H__