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--; } } }
internal void ReadResourceFile(SmartStream stream, string filePath, string fileName, long offset, long size) { ResourcesFile resource = new ResourcesFile(stream, filePath, fileName, offset, size); AddResourceFile(resource); }
private ResourcesFile(ResourcesFile copy) : this(copy.m_stream, copy.FilePath, copy.Name, copy.Offset, copy.Size) { }