From b075977dd76989066c4de01e6659154b4f4c9837 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 3 Jul 2022 15:57:58 +0200 Subject: [PATCH] Add new member to SQVM struct '_nnativecalls' used in 'SQVM::CallNative()' [r5apex.exe+10A05F0]. --- r5dev/squirrel/sqtype.h | 8 ++++++++ r5dev/squirrel/sqvm.h | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/r5dev/squirrel/sqtype.h b/r5dev/squirrel/sqtype.h index b52861a9..dc580145 100644 --- a/r5dev/squirrel/sqtype.h +++ b/r5dev/squirrel/sqtype.h @@ -6,6 +6,14 @@ #define SQ_FAILED(res) (res<0) #define SQ_SUCCEEDED(res) (res>=0) +#define SQ_SUSPEND_FLAG -666 +#define SQ_TAILCALL_FLAG -777 +#define DONT_FALL_BACK 666 +//#define EXISTS_FALL_BACK -1 + +#define GET_FLAG_RAW 0x00000001 +#define GET_FLAG_DO_NOT_RAISE_ERROR 0x00000002 + typedef char SQChar; typedef float SQFloat; typedef long SQInteger; diff --git a/r5dev/squirrel/sqvm.h b/r5dev/squirrel/sqvm.h index 5a46c168..00044adc 100644 --- a/r5dev/squirrel/sqvm.h +++ b/r5dev/squirrel/sqvm.h @@ -35,6 +35,11 @@ struct SQVM SQSharedState* _sharedstate; char gap004[16]; int _top; + char gap005[148]; +#if !defined (GAMEDLL_S0) && !defined (GAMEDLL_S1) && !defined (GAMEDLL_S2) + char gap006[30]; +#endif + SQInteger _nnativecalls; }; typedef SQVM* HSQUIRRELVM;