added wxUSE_FS_INET/ZIP

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-07-09 14:32:50 +00:00
parent 4ad3104559
commit e3e717ecc5
9 changed files with 93 additions and 35 deletions

View File

@@ -16,6 +16,8 @@
#pragma hdrstop
#endif
#if wxUSE_FS_INET || wxUSE_FS_ZIP
#ifndef WXPRECOMP
#include <wx/wx.h>
#endif
@@ -66,7 +68,7 @@ wxString wxFileSystemHandler::GetProtocol(const wxString& location) const
fnd = FALSE;
for (i = l-1; (i >= 0) && ((location[i] != '#') || (!fnd)); i--) {
if ((location[i] == ':') && (i != 1 /*win: C:\path*/)) fnd = TRUE;
if ((location[i] == ':') && (i != 1 /*win: C:\path*/)) fnd = TRUE;
}
if (!fnd) return "file";
for (++i; (i < l) && (location[i] != ':'); i++) s << location[i];
@@ -291,4 +293,5 @@ IMPLEMENT_DYNAMIC_CLASS(wxFileSystemModule, wxModule)
#endif // wxUSE_FS_INET || wxUSE_FS_ZIP