diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 6e41cf9..ed06fac 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/Machine.cpp b/Machine.cpp index adf9aeb..851ef32 100644 --- a/Machine.cpp +++ b/Machine.cpp @@ -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 ;