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:
parent
d18b90ad4f
commit
9fced84a7a
|
@ -1,3 +1,5 @@
|
||||||
|
global {VERSION = "1.16"}
|
||||||
|
|
||||||
local config = {}
|
local config = {}
|
||||||
|
|
||||||
config.project_scan_rate = 5
|
config.project_scan_rate = 5
|
||||||
|
|
|
@ -103,9 +103,6 @@ init_lua:
|
||||||
}
|
}
|
||||||
lua_setglobal(L, "ARGS");
|
lua_setglobal(L, "ARGS");
|
||||||
|
|
||||||
lua_pushstring(L, "1.16");
|
|
||||||
lua_setglobal(L, "VERSION");
|
|
||||||
|
|
||||||
lua_pushstring(L, SDL_GetPlatform());
|
lua_pushstring(L, SDL_GetPlatform());
|
||||||
lua_setglobal(L, "PLATFORM");
|
lua_setglobal(L, "PLATFORM");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue