diff --git a/EgtGeneral.rc b/EgtGeneral.rc index 6e5d057..4345a00 100644 Binary files a/EgtGeneral.rc and b/EgtGeneral.rc differ diff --git a/FileUtils.cpp b/FileUtils.cpp index e7e3fc5..df0c707 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -138,6 +138,19 @@ GetFileName( const string& sPath) return sPath.substr( iPos+1) ; } +//---------------------------------------------------------------------------- +string +GetFileTitleEgt( const string& sPath) +{ + // cerco l'ultimo separatore + size_t iPos = sPath.find_last_of( "/\\") ; + // recupero il nome + string sName = (( iPos == string::npos) ? sPath : sPath.substr( iPos + 1)) ; + // tolgo l'eventuale estensione + size_t iPos2 = sName.find_last_of( ".") ; + return (( iPos2 == string::npos) ? sName : sName.substr( 0, iPos2)) ; +} + //---------------------------------------------------------------------------- string GetDirectory( const string& sPath)