diff --git a/EgtExecutor.rc b/EgtExecutor.rc index e3ba528..ef01485 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ diff --git a/LUA_General.cpp b/LUA_General.cpp index 1251bf3..00f6cef 100644 --- a/LUA_General.cpp +++ b/LUA_General.cpp @@ -1076,6 +1076,22 @@ LuaIs64bit( lua_State* L) return 1 ; } +//------------------------------------------------------------------------------- +static int +LuaGetOsInfo( lua_State* L) +{ + // nessun parametro + LuaClearStack( L) ; + // restituisco il risultato + string sOsInfo ; + bool bOk = ExeGetOsInfo( sOsInfo) ; + if ( bOk) + LuaSetParam( L, sOsInfo) ; + else + LuaSetParam( L) ; + return 1 ; +} + //------------------------------------------------------------------------------- static int LuaGetLanguage( lua_State* L) @@ -1957,6 +1973,7 @@ LuaInstallGeneral( LuaMgr& luaMgr) bOk = bOk && luaMgr.RegisterFunction( "EgtGetExeVersion", LuaGetExeVersion) ; bOk = bOk && luaMgr.RegisterFunction( "EgtGetVersion", LuaGetVersion) ; bOk = bOk && luaMgr.RegisterFunction( "EgtIs64bit", LuaIs64bit) ; + bOk = bOk && luaMgr.RegisterFunction( "EgtGetOsInfo", LuaGetOsInfo) ; bOk = bOk && luaMgr.RegisterFunction( "EgtGetLanguage", LuaGetLanguage) ; bOk = bOk && luaMgr.RegisterFunction( "EgtMsg", LuaGetMsg) ; bOk = bOk && luaMgr.RegisterFunction( "EgtVerifyKeyOption", LuaVerifyKeyOption) ;