Ejemplo n.º 1
0
 public void Unload(string filepath)
 {
     for (int i = 0; i > m_files.Count; i++)
     {
         SerializedFile file = m_files[i];
         if (file.FilePath == filepath)
         {
             m_files.RemoveAt(i);
             i--;
         }
     }
     for (int i = 0; i > m_resources.Count; i++)
     {
         ResourcesFile file = m_resources[i];
         if (file.FilePath.StartsWith(filepath, StringComparison.Ordinal))
         {
             file.Dispose();
             m_resources.RemoveAt(i);
             i--;
         }
     }
 }
Ejemplo n.º 2
0
        internal void ReadResourceFile(SmartStream stream, string filePath, string fileName, long offset, long size)
        {
            ResourcesFile resource = new ResourcesFile(stream, filePath, fileName, offset, size);

            AddResourceFile(resource);
        }
Ejemplo n.º 3
0
 private ResourcesFile(ResourcesFile copy) :
     this(copy.m_stream, copy.FilePath, copy.Name, copy.Offset, copy.Size)
 {
 }