EgtExecutor.rc 1.6e3 :

- sistemata ExeOutLog (era rimasta EgtOutLog)
- passato indice context a MachMgr
- aggiunta LuaInstallEgtFunctions.
This commit is contained in:
Dario Sassi
2015-05-07 07:02:38 +00:00
parent 966885645e
commit a754d1b1af
5 changed files with 9 additions and 8 deletions
+3 -3
View File
@@ -266,10 +266,10 @@ ExeGetMemoryInfo( string& sMem)
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtOutLog( const wchar_t* sMsg)
bool
ExeOutLog( const string& sMsg)
{
LOG_INFO( s_pGenLog, LPSTR( WtoA( sMsg)))
LOG_INFO( s_pGenLog, sMsg.c_str())
return ( s_pGenLog != nullptr) ;
}
+2 -2
View File
@@ -29,11 +29,11 @@ bool
ExeInitMachMgr( const string& sMachinesDir)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX( pGseCtx, false)
VERIFY_CTX_GEOMDB( pGseCtx, false)
// inizializzazione gestore lavorazioni
PtrOwner<IMachMgr> pMachMgr( MyCreateMachMgr()) ;
VERIFY_NULL( Get( pMachMgr), "Error in CreateMachMgr", false)
bool bOk = pMachMgr->Init( pGseCtx->m_pGeomDB, sMachinesDir) ;
bool bOk = pMachMgr->Init( GetIndCurrGseContext(), pGseCtx->m_pGeomDB, sMachinesDir) ;
// assegno il gestore al contesto
pGseCtx->m_pMachMgr = ( bOk ? Release( pMachMgr) : nullptr) ;
// log avvio Machining Manager
+1 -1
View File
@@ -27,7 +27,7 @@ bool
ExeInitScene( HWND hWnd, int nDriver, bool b2Buff, int nColorBits, int nDepthBits)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX( pGseCtx, false)
VERIFY_CTX_GEOMDB( pGseCtx, false)
// inizializzazione scena OpenGL
PtrOwner<IEGrScene> pScene( MyCreateEGrScene()) ;
VERIFY_NULL( Get( pScene), "Error in CreateEGrScene", false)
BIN
View File
Binary file not shown.
+3 -2
View File
@@ -16,13 +16,14 @@
#include "EXE.h"
#include "LUA.h"
#include "LUA_Base.h"
#include "/EgtDev/Include/EXeExecutor.h"
#include "/EgtDev/Include/EGnLuaMgr.h"
using namespace std ;
//----------------------------------------------------------------------------
bool
LuaInstallAllFunctions( LuaMgr& LuaMgr)
LuaInstallEgtFunctions( LuaMgr& LuaMgr)
{
if ( ! LuaInstallGeneral( LuaMgr)) {
LOG_ERROR( GetLogger(), "Error in LuaInstallGeneral (" __FUNCTION__ ")")
@@ -113,7 +114,7 @@ LuaInit( void)
return false ;
// carico le funzioni speciali
if ( ! LuaInstallAllFunctions( s_LuaMgr))
if ( ! LuaInstallEgtFunctions( s_LuaMgr))
return false ;
// recupero la versione di Lua