Added _PLATFORM global
This commit is contained in:
parent
592c16f3e0
commit
bd43ed3e3f
|
@ -90,11 +90,12 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
lua_setglobal(L, "_ARGS");
|
||||
|
||||
lua_pushstring(L, SDL_GetPlatform());
|
||||
lua_setglobal(L, "_PLATFORM");
|
||||
|
||||
lua_pushnumber(L, get_scale());
|
||||
lua_setglobal(L, "_SCALE");
|
||||
|
||||
|
||||
char exedir[2048];
|
||||
get_exe_dir(exedir, sizeof(exedir));
|
||||
lua_pushstring(L, exedir);
|
||||
|
|
Loading…
Reference in a new issue