Added _PLATFORM global

This commit is contained in:
rxi 2020-04-23 20:03:14 +01:00
parent 592c16f3e0
commit bd43ed3e3f
1 changed files with 2 additions and 1 deletions

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