Lua version now displayed in stats. Now using Lua 5.2 on Windows. Add modified gfx2def.ini, forgotten in previous revision

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2000 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-09-19 21:09:07 +00:00
parent 144a28412b
commit 2e16f0bec3
5 changed files with 65 additions and 33 deletions

View File

@@ -143,6 +143,11 @@ do { \
return luaL_error(L, "%s: Expected %d arguments, but found %d.", func_name, (num), nb_args); \
} while(0)
const char * Lua_version(void)
{
return LUA_VERSION_MAJOR "." LUA_VERSION_MINOR;
}
// Updates the screen colors after a running screen has modified the palette.
void Update_colors_during_script(void)
{
@@ -2142,9 +2147,18 @@ void Button_Brush_Factory(void)
}
#else // NOLUA
void Button_Brush_Factory(void)
{
Verbose_message("Error!", "The brush factory is not available in this build of GrafX2.");
}
///
/// Returns a string stating the included Lua engine version,
/// or "Disabled" if Grafx2 is compiled without Lua.
const char * Lua_version(void)
{
return "Disabled";
}
#endif