Example #1
0
        /// <summary>
        /// Closes a stream that is owned by this IOSystem.
        /// </summary>
        /// <param name="stream">Stream to close</param>
        public virtual void CloseFile(IOStream stream)
        {
            if(stream == null)
                return;

            if(m_openedFiles.ContainsKey(stream.AiFile))
            {
                m_openedFiles.Remove(stream.AiFile);

                if(!stream.IsDisposed)
                    stream.Close();
            }
        }