diff --git a/src/gui/lua/luainstance.cpp b/src/gui/lua/luainstance.cpp index f223e1f98..a18e82741 100644 --- a/src/gui/lua/luainstance.cpp +++ b/src/gui/lua/luainstance.cpp @@ -744,12 +744,15 @@ int CLuaInstance::deleteSavedScreen(lua_State *L) int CLuaInstance::GetRevision(lua_State *L) { - unsigned int ret = 0; + unsigned int rev = 0; + std::string hw = ""; #if HAVE_COOL_HARDWARE - ret = cs_get_revision(); + hw = "Coolstream"; #endif - lua_pushinteger(L, ret); - return 1; + rev = cs_get_revision(); + lua_pushinteger(L, rev); + lua_pushstring(L, hw.c_str()); + return 2; } int CLuaInstance::PaintBox(lua_State *L) diff --git a/src/gui/lua/luainstance.h b/src/gui/lua/luainstance.h index dfb2dc8ef..d952203c3 100644 --- a/src/gui/lua/luainstance.h +++ b/src/gui/lua/luainstance.h @@ -34,7 +34,7 @@ extern "C" { #include #define LUA_API_VERSION_MAJOR 1 -#define LUA_API_VERSION_MINOR 21 +#define LUA_API_VERSION_MINOR 22 typedef std::pair fontmap_pair_t; typedef std::map fontmap_t;