diff --git a/src/main.c b/src/main.c index 95cebf94..570e76ce 100644 --- a/src/main.c +++ b/src/main.c @@ -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);