Move VERSION variable into Lua code

To avoid recreating binaries if there are no changes
in the C side of the source code.
This commit is contained in:
Francesco Abbate
2021-02-16 14:35:02 +01:00
parent d18b90ad4f
commit 9fced84a7a
2 changed files with 2 additions and 3 deletions
+2
View File
@@ -1,3 +1,5 @@
global {VERSION = "1.16"}
local config = {}
config.project_scan_rate = 5
-3
View File
@@ -103,9 +103,6 @@ init_lua:
}
lua_setglobal(L, "ARGS");
lua_pushstring(L, "1.16");
lua_setglobal(L, "VERSION");
lua_pushstring(L, SDL_GetPlatform());
lua_setglobal(L, "PLATFORM");