EgtGraphics 1.6c4 :
- aggiunta gestione codici di protezione (con opzioni).
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include "/EgtDev/Include/EGkFrame3d.h"
|
||||
#include "/EgtDev/Include/EGkGdbConst.h"
|
||||
#include "/EgtDev/Include/EGkGeomDB.h"
|
||||
#include "/EgtDev/Include/SELkKeyProc.h"
|
||||
#include "/EgtDev/Include/EgtKeyCodes.h"
|
||||
|
||||
using namespace std ;
|
||||
|
||||
@@ -34,6 +36,22 @@ static const double MIN_ZCLIP_EXT = 5000 ;
|
||||
IEGrScene*
|
||||
CreateEGrScene( void)
|
||||
{
|
||||
// verifico la chiave e le opzioni
|
||||
unsigned int nOpt1, nOpt2 ;
|
||||
int nOptExpDays ;
|
||||
int nRet = GetKeyOptions( GetEGrKey(), KEY_BASELIB_PROD, KEY_BASELIB_VER, KEY_BASELIB_LEV,
|
||||
nOpt1, nOpt2, nOptExpDays) ;
|
||||
if ( nRet != KEY_OK) {
|
||||
string sErr = "Error on Key (GRC/" + ToString( nRet) + ")" ;
|
||||
LOG_ERROR( GetEGrLogger(), sErr.c_str()) ;
|
||||
return false ;
|
||||
}
|
||||
if ( (nOpt1 & KEYOPT_EGR_BASE) == 0 || nOptExpDays < GetCurrDay()) {
|
||||
string sErr = "Error on Key (GRC/OPT)" ;
|
||||
LOG_ERROR( GetEGrLogger(), sErr.c_str()) ;
|
||||
return false ;
|
||||
}
|
||||
// creo l'oggetto
|
||||
return static_cast<IEGrScene*> ( new(nothrow) Scene) ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user