added wxStandardPaths::GetDocumentsDir() (patch 1214360)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -521,7 +521,7 @@ bool wxIsBusy()
|
||||
|
||||
#if wxUSE_BASE
|
||||
|
||||
wxString wxMacFindFolder( short vol,
|
||||
wxString wxMacFindFolderNoSeparator( short vol,
|
||||
OSType folderType,
|
||||
Boolean createFolder)
|
||||
{
|
||||
@@ -529,11 +529,20 @@ wxString wxMacFindFolder( short vol,
|
||||
wxString strDir ;
|
||||
|
||||
if ( FSFindFolder( vol, folderType, createFolder, &fsRef) == noErr)
|
||||
strDir = wxMacFSRefToPath( &fsRef ) + wxFILE_SEP_PATH ;
|
||||
{
|
||||
strDir = wxMacFSRefToPath( &fsRef );
|
||||
}
|
||||
|
||||
return strDir ;
|
||||
}
|
||||
|
||||
wxString wxMacFindFolder( short vol,
|
||||
OSType folderType,
|
||||
Boolean createFolder)
|
||||
{
|
||||
return wxMacFindFolderNoSeparator(vol, folderType, createFolder) + wxFILE_SEP_PATH;
|
||||
}
|
||||
|
||||
#endif // wxUSE_BASE
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
Reference in New Issue
Block a user