EgtMachKernel 1.6s4 :

- gestione file mlde in sostituzione degli mde (si leggono ancora per compatibilità in assenza di mlde).
This commit is contained in:
Dario Sassi
2016-07-12 10:45:21 +00:00
parent 611d70d54d
commit 40f3f3e023
2 changed files with 4 additions and 2 deletions
+4 -2
View File
@@ -109,8 +109,10 @@ Machine::Init( const string& sMachinesDir, const string& sMachineName, MachMgr*
m_nGroupId = nId ;
m_sName = sMachineName ;
// carico la macchina {
string sMachineMde = m_sMachineDir + "\\" + sMachineName + ".Mde" ;
bool bOk = LuaLoadMachine( sMachineMde) ;
string sMachineMlde = m_sMachineDir + "\\" + sMachineName + ".Mlde" ;
if ( ! ExistsFile( sMachineMlde))
sMachineMlde = m_sMachineDir + "\\" + sMachineName + ".Mde" ;
bool bOk = LuaLoadMachine( sMachineMlde) ;
// cancello il gruppo temporaneo
m_pGeomDB->Erase( m_nTempGroupId) ;
m_nTempGroupId = GDB_ID_NULL ;