Added _PLATFORM global
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user