This commit is contained in:
2022-09-06 00:08:26 +08:00
parent e17ffc3965
commit 91d57c13f0
232 changed files with 191628 additions and 250 deletions

View File

@@ -51,6 +51,13 @@ typedef void(__fastcall* DrawCode)(DWORD thisc, int Seat, int a3, int a4, int a5
static DrawCode DrawCodeF;
#define INIT_NUT_DRAWCODE 0x1206BD0
constexpr int Byte_Length = 6;
//0x1b45b94
class DNFTOOL
{
@@ -78,6 +85,11 @@ public:
static int GetEquAddr(int addr);
//UTF8转Unicode
static char* U8ToUnicode(const char* szU8);
//Unicode 转 UTF8
static char* UnicodeToUtf8(const wchar_t* unicode);
//wchar_t* 转 char*
static char* UnicodeToAnsi(const wchar_t* szStr, char* pResult, int maxLen);
@@ -95,7 +107,8 @@ public:
//Squirrel wchar_t* 转 Unicode
static wchar_t* SquirrelW2W(const wchar_t* wchar);
//Squirrel UTF8 wchar_t* 转 Unicode
static char* SquirrelU2W(const wchar_t* wchar);
//wchar_t* 转 string*
static void Wchar_tToString(std::string& szDst, wchar_t* wchar);
@@ -104,6 +117,9 @@ public:
//string 转 wchar_t*
static const wchar_t* GetWC(const char* c);
//utf8 转 gb2312
static std::string UtfToGbk(const char* utf8);
//将字符串分割存入vector
static void Split(const std::string& src, std::vector<std::string>& dest, const std::string& separator = "->");
//判断字符串是否为纯数字
@@ -115,5 +131,8 @@ public:
static void GMNotice(char* str, int type, int color);
//获取腾讯文档IP
static std::string GetIP();
//修改内存属性 返回值是源内存属性
static DWORD Motify_memory_attributes(int address, DWORD attributes = PAGE_EXECUTE_READWRITE);
};