From 9fced84a7accd663437941ee75059b5481f24155 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Tue, 16 Feb 2021 14:33:39 +0100 Subject: [PATCH] Move VERSION variable into Lua code To avoid recreating binaries if there are no changes in the C side of the source code. --- data/core/config.lua | 2 ++ src/main.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/core/config.lua b/data/core/config.lua index 56a1c0dc..cc2133a3 100644 --- a/data/core/config.lua +++ b/data/core/config.lua @@ -1,3 +1,5 @@ +global {VERSION = "1.16"} + local config = {} config.project_scan_rate = 5 diff --git a/src/main.c b/src/main.c index 4caa3cb1..ed375890 100644 --- a/src/main.c +++ b/src/main.c @@ -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");