mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Make token available to Lua as a global variable
Reviewed by @RedEnchilada
This commit is contained in:
parent
5c24efac21
commit
919e3ed0e2
1 changed files with 3 additions and 0 deletions
|
@ -8276,6 +8276,9 @@ static inline int lib_getenum(lua_State *L)
|
|||
} else if (fastcmp(word,"VERSIONSTRING")) {
|
||||
lua_pushstring(L, VERSIONSTRING);
|
||||
return 1;
|
||||
} else if (fastcmp(word, "token")) {
|
||||
lua_pushinteger(L, token);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue