mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 11:40:52 +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")) {
|
} else if (fastcmp(word,"VERSIONSTRING")) {
|
||||||
lua_pushstring(L, VERSIONSTRING);
|
lua_pushstring(L, VERSIONSTRING);
|
||||||
return 1;
|
return 1;
|
||||||
|
} else if (fastcmp(word, "token")) {
|
||||||
|
lua_pushinteger(L, token);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue