This commit is contained in:
2022-11-06 23:12:18 +08:00
parent 91d57c13f0
commit 9a08d162ad
11 changed files with 667 additions and 252 deletions

View File

@@ -120,6 +120,7 @@ static SqGetTopFunc* SQGetTop = (SqGetTopFunc*)0x1358FC0;
//获取SQR的对象转换为原始对象地址
typedef int(_cdecl __GetSqrObject)(uint32_t a1, int a2);
static __GetSqrObject* GetSqrObject = (__GetSqrObject*)0x5c1420;
static __GetSqrObject* GetExeObject = (__GetSqrObject*)0x5c13A0;
//Push
typedef int(SqPushFunc)(uint32_t v, int idx);
static SqPushFunc* SQPush = (SqPushFunc*)0x1358C90;
@@ -188,6 +189,9 @@ static SQ__FcloseFunc* SQ__Fclose = (SQ__FcloseFunc*)0x1355E70;
//SQ_Compile
typedef int(SQ_CompileFunc)(uint32_t v, LSQLEXREADFUNC FUNC, void* file, const wchar_t* filename, BOOL printerror);
static SQ_CompileFunc* SQ_Compile = (SQ_CompileFunc*)0x135A390;
//SQ_Compilebuffer
typedef int(SQ_CompilebufferFunc)(uint32_t v, const wchar_t* s,int size, wchar_t* filename, BOOL printerror);
static SQ_CompilebufferFunc* SQ_Compilebuffer = (SQ_CompilebufferFunc*)0x135B2C0;
//SQ_Throwerror
typedef int(SQ_ThrowerrorFunc)(uint32_t v, const wchar_t* error);
static SQ_ThrowerrorFunc* SQ_Throwerror = (SQ_ThrowerrorFunc*)0x13591A0;
@@ -212,8 +216,11 @@ public://
static int SQloadfile(uint32_t v, const wchar_t* filename, BOOL printerror);
static int SQdofile(uint32_t v, const wchar_t* filename, BOOL retval, BOOL printerror);
static int SQloadfileBuffer(uint32_t v, const wchar_t* filename, const wchar_t* str,BOOL printerror);
static int SQdofileBuffer(uint32_t v, const wchar_t* filename, const wchar_t* str);
public://绘制类
static int sq_GetImg(uint32_t v);
static int sq_DrawItem(uint32_t v);
public://对象类
static int GetObjectAddress(uint32_t v);//获取对象地址
@@ -238,10 +245,12 @@ public://NUT API
static int LReadAddress(uint32_t v);//读内存
static int LWriteAddress(uint32_t v);//写内存
static int Lcout(uint32_t v);//Lcout
static int sq_DrawCode(uint32_t v);//绘制字符
static int NewWindows(uint32_t v);//新建窗口
static int SetSlot(uint32_t v);//设置UI槽坐标
static int RegisterItemColor_STL(uint32_t v);//设置项目颜色
static int Sout(uint32_t v);//输出
public://发包 API
static int SendPackType(uint32_t v);//发包类型
static int SendPackByte(uint32_t v);//发包Byte