diff --git a/DllMain.h b/DllMain.h index db8ec82..bad65e2 100644 --- a/DllMain.h +++ b/DllMain.h @@ -20,3 +20,4 @@ //----------------------------------------------------------------------------- ILogger* GetEGrLogger( void) ; const std::string& GetEGrKey( void) ; +bool GetEGrNetHwKey( void) ; diff --git a/EGrDllMain.cpp b/EGrDllMain.cpp index 0e8b1df..16db938 100644 --- a/EGrDllMain.cpp +++ b/EGrDllMain.cpp @@ -89,6 +89,7 @@ GetEGrLogger( void) //----------------------------------------------------------------------------- static std::string s_sKey ; +static bool s_bNetHwKey = false ; //----------------------------------------------------------------------------- void @@ -97,9 +98,23 @@ SetEGrKey( const std::string& sKey) s_sKey = sKey ; } +//----------------------------------------------------------------------------- +void +SetEGrNetHwKey( bool bNetHwKey) +{ + s_bNetHwKey = bNetHwKey ; +} + //----------------------------------------------------------------------------- const std::string& GetEGrKey( void) { return s_sKey ; } + +//----------------------------------------------------------------------------- +bool +GetEGrNetHwKey( void) +{ + return s_bNetHwKey ; +} diff --git a/EgtGraphics.rc b/EgtGraphics.rc index 072447c..e470297 100644 Binary files a/EgtGraphics.rc and b/EgtGraphics.rc differ diff --git a/ImageMgr.cpp b/ImageMgr.cpp index eee8785..b603071 100644 --- a/ImageMgr.cpp +++ b/ImageMgr.cpp @@ -29,8 +29,10 @@ IEgrImageMgr* CreateEgrImageMgr( void) { // verifico la chiave e le opzioni - if ( ! TestKeyForEGr( GetEGrKey(), 0, GetEGrLogger())) - return nullptr ; + if ( ! GetEGrNetHwKey()) { + if ( ! TestKeyForEGr( GetEGrKey(), 0, GetEGrLogger())) + return nullptr ; + } // creo l'oggetto return static_cast ( new(nothrow) ImageMgr) ; } diff --git a/SceneBasic.cpp b/SceneBasic.cpp index 1da3aa5..9aa2634 100644 --- a/SceneBasic.cpp +++ b/SceneBasic.cpp @@ -38,8 +38,10 @@ IEGrScene* CreateEGrScene( void) { // verifico la chiave e le opzioni - if ( ! TestKeyForEGr( GetEGrKey(), 0, GetEGrLogger())) - return nullptr ; + if ( ! GetEGrNetHwKey()) { + if ( ! TestKeyForEGr( GetEGrKey(), 0, GetEGrLogger())) + return nullptr ; + } // creo l'oggetto return static_cast ( new(nothrow) Scene) ; }