- if (!CheckHash(filename)) return;
- m_Hash -> Put(filename, new MemFSHashObj(binarydata, size));
+ if ( !CheckDoesntExist(filename) )
+ return;
+
+ m_Hash[filename] = new wxMemoryFSFile(binarydata, size, mimetype);
+}
+
+/*static*/
+void wxMemoryFSHandlerBase::AddFile(const wxString& filename,
+ const wxString& textdata)
+{
+ AddFileWithMimeType(filename, textdata, wxEmptyString);
+}
+
+
+/*static*/
+void wxMemoryFSHandlerBase::AddFile(const wxString& filename,
+ const void *binarydata, size_t size)
+{
+ AddFileWithMimeType(filename, binarydata, size, wxEmptyString);