@ -1789,18 +1789,18 @@ std::string CFileContainer::getApplicationDirectory(const std::string &appName,
if ( appPath . empty ( ) )
if ( appPath . empty ( ) )
{
{
# ifdef NL_OS_WINDOWS
# ifdef NL_OS_WINDOWS
w char_t buffer [ MAX_PATH ] ;
char buffer [ MAX_PATH ] ;
# ifdef CSIDL_LOCAL_APPDATA
# ifdef CSIDL_LOCAL_APPDATA
if ( local )
if ( local )
{
{
SHGetSpecialFolderPath W ( NULL , buffer , CSIDL_LOCAL_APPDATA , TRUE ) ;
SHGetSpecialFolderPath A ( NULL , buffer , CSIDL_LOCAL_APPDATA , TRUE ) ;
}
}
else
else
# endif
# endif
{
{
SHGetSpecialFolderPath W ( NULL , buffer , CSIDL_APPDATA , TRUE ) ;
SHGetSpecialFolderPath A ( NULL , buffer , CSIDL_APPDATA , TRUE ) ;
}
}
appPath = CPath : : standardizePath ( ucstring( ( ucchar * ) buffer) . toUtf8 ( ) ) ;
appPath = CPath : : standardizePath ( buffer) ;
# elif defined(NL_OS_MAC)
# elif defined(NL_OS_MAC)
appPath = CPath : : standardizePath ( getenv ( " HOME " ) ) ;
appPath = CPath : : standardizePath ( getenv ( " HOME " ) ) ;
appPath + = " /Library/Application Support/ " ;
appPath + = " /Library/Application Support/ " ;