]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_zip.cpp
added conversion to mac native filenames from local filesystem handler
[wxWidgets.git] / src / common / fs_zip.cpp
index 3a4f8deab63deaa2f7b52052742d0e6ae84e5180..cbef9152dd914d895b70b2fd101abfdd9632b745 100644 (file)
@@ -10,7 +10,7 @@
 
 
 #ifdef __GNUG__
-#pragma implementation
+#pragma implementation "fs_zip.h"
 #endif
 
 #include "wx/wxprec.h"
@@ -22,7 +22,8 @@
 #if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM
 
 #ifndef WXPRECOMP
-#include "wx/wx.h"
+    #include "wx/intl.h"
+    #include "wx/log.h"
 #endif
 
 #include "wx/hash.h"
@@ -67,7 +68,8 @@ wxZipFSHandler::~wxZipFSHandler()
 bool wxZipFSHandler::CanOpen(const wxString& location)
 {
     wxString p = GetProtocol(location);
-    return (p == wxT("zip"));
+    return (p == wxT("zip")) && 
+           (GetProtocol(GetLeftLocation(location)) == wxT("file"));
 }