Added _PLATFORM global

This commit is contained in:
rxi 2020-04-23 20:03:14 +01:00
parent 592c16f3e0
commit bd43ed3e3f

View file

@ -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);