EgtExecutor 3.1f4 :

- in LUA_General aggiuta funzione EgtGetOsInfo per informazioni sul sistema operativo corrente.
This commit is contained in:
Riccardo Elitropi
2026-06-25 16:16:57 +02:00
parent d085712fc8
commit 5399ba183b
2 changed files with 17 additions and 0 deletions
BIN
View File
Binary file not shown.
+17
View File
@@ -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) ;