mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-05-03 05:03:50 +00:00
feat(profile): better lua types
This commit is contained in:
parent
df334b10b1
commit
e079d65179
2 changed files with 20 additions and 2 deletions
|
|
@ -184,6 +184,7 @@ struct Node {
|
||||||
|
|
||||||
struct Table {
|
struct Table {
|
||||||
GCObject* next;
|
GCObject* next;
|
||||||
|
uint32_t unk04;
|
||||||
lu_byte tt;
|
lu_byte tt;
|
||||||
lu_byte marked;
|
lu_byte marked;
|
||||||
lu_byte flags;
|
lu_byte flags;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ DECLARE_STRUCT(global_State);
|
||||||
|
|
||||||
DECLARE_STRUCT(lua_State);
|
DECLARE_STRUCT(lua_State);
|
||||||
|
|
||||||
|
DECLARE_STRUCT(LG);
|
||||||
|
|
||||||
#include "lua/object.h"
|
#include "lua/object.h"
|
||||||
#include "lua/types.h"
|
#include "lua/types.h"
|
||||||
|
|
||||||
|
|
@ -31,6 +33,7 @@ struct global_State {
|
||||||
stringtable strt;
|
stringtable strt;
|
||||||
lua_Alloc frealloc;
|
lua_Alloc frealloc;
|
||||||
void* ud;
|
void* ud;
|
||||||
|
lu_byte profile;
|
||||||
lu_byte currentwhite;
|
lu_byte currentwhite;
|
||||||
lu_byte gcstate;
|
lu_byte gcstate;
|
||||||
int32_t sweepstrgc;
|
int32_t sweepstrgc;
|
||||||
|
|
@ -52,11 +55,18 @@ struct global_State {
|
||||||
lua_State* mainthread;
|
lua_State* mainthread;
|
||||||
UpVal uvhead;
|
UpVal uvhead;
|
||||||
Table* mt[9];
|
Table* mt[9];
|
||||||
TString* tmname[0];
|
uint32_t unkBC;
|
||||||
|
uint32_t unkC0;
|
||||||
|
TString* tmname[17];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct lua_State {
|
struct lua_State {
|
||||||
GCObject* next;
|
GCObject* next;
|
||||||
|
// Added by Blizzard
|
||||||
|
// Set to:
|
||||||
|
// - lua_tainted
|
||||||
|
// - lua_gctag
|
||||||
|
int32_t unk04;
|
||||||
lu_byte tt;
|
lu_byte tt;
|
||||||
lu_byte marked;
|
lu_byte marked;
|
||||||
lu_byte status;
|
lu_byte status;
|
||||||
|
|
@ -83,6 +93,8 @@ struct lua_State {
|
||||||
GCObject* gclist;
|
GCObject* gclist;
|
||||||
lua_longjmp* errorJmp;
|
lua_longjmp* errorJmp;
|
||||||
ptrdiff_t errfunc;
|
ptrdiff_t errfunc;
|
||||||
|
uint32_t unk78;
|
||||||
|
uint32_t unk7C;
|
||||||
};
|
};
|
||||||
|
|
||||||
union GCObject {
|
union GCObject {
|
||||||
|
|
@ -96,4 +108,9 @@ union GCObject {
|
||||||
lua_State th;
|
lua_State th;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct LG {
|
||||||
|
lua_State l;
|
||||||
|
global_State g;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue