wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
{
wxString right = GetRightLocation(location);
+ #ifdef __WXMAC__
+ if ( right[0] != '.' && right[0] != '/' && right.Find( '/' ) != wxNOT_FOUND ) {
+ right = "./" + right ;
+ }
+ right = wxUnix2MacFilename( right ) ;
+ #endif
if (!wxFileExists(right))
return (wxFSFile*) NULL;
wxString wxLocalFSHandler::FindFirst(const wxString& spec, int flags)
{
wxString right = GetRightLocation(spec);
+ #ifdef __WXMAC__
+ if ( right[0] != '.' && right[0] != '/' && right.Find( '/' ) != wxNOT_FOUND ) {
+ right = "./" + right ;
+ }
+ right = wxUnix2MacFilename( right ) ;
+ #endif
return wxFindFirstFile(right, flags);
}