r5sdk/r5dev/squirrel/sqstate.h
Kawe Mazidjatari 8816a28372 SQVM cleanup
The SDK could now obtain context index for builds before S3
2022-05-19 02:19:43 +02:00

31 lines
537 B
C

#ifndef SQSTATE_H
#define SQSTATE_H
#include "squirrel/sqtype.h"
#pragma pack(push, 1)
struct SQSharedState
{
uint8_t gap0[17256];
#if !defined (GAMEDLL_S0) && !defined (GAMEDLL_S1) && !defined (GAMEDLL_S2)
uint8_t gap1[32];
#endif
void* _printfunc;
uint8_t gap4390[33];
SQChar _contextname[7];
};
#pragma pack(pop)
struct SQBufState
{
const SQChar* buf;
const SQChar* bufTail;
const SQChar* bufCopy;
SQBufState(const SQChar* code)
{
buf = code;
bufTail = code + strlen(code);
bufCopy = code;
}
};
#endif // SQSTATE_H