2022-05-19 02:19:43 +02:00
|
|
|
#ifndef SQSTATE_H
|
|
|
|
#define SQSTATE_H
|
2023-05-06 16:23:56 +02:00
|
|
|
#include "squirrel.h"
|
2022-05-19 02:19:43 +02:00
|
|
|
|
|
|
|
#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
|