Program version is now in a const from a generated file, not a static macro. Plus all the mess I had to make to get that to work.

This commit is contained in:
Ben "root" Anderson
2015-01-28 19:21:24 -06:00
parent 0d394e269d
commit 7a33b8a44a
8 changed files with 29 additions and 57 deletions
+2 -1
View File
@@ -12,6 +12,7 @@
#include "RageLog.h"
#include "RageTypes.h"
#include "MessageManager.h"
#include "ver.h"
#include <sstream> // conversion for lua functions.
#include <csetjmp>
@@ -1040,7 +1041,7 @@ void LuaHelpers::PushValueFunc( lua_State *L, int iArgs )
#include "ProductInfo.h"
LuaFunction( ProductFamily, (RString) PRODUCT_FAMILY );
LuaFunction( ProductVersion, (RString) PRODUCT_VER );
LuaFunction( ProductVersion, (RString) product_version );
LuaFunction( ProductID, (RString) PRODUCT_ID );
extern const char *const version_date;