/// <summary> /// Opens an existing <see cref="RgzArchive"/>. /// </summary> /// <param name="filename">The path to the <see cref="RgzArchive"/>.</param> /// <param name="isreadonly">Wether or not to open the file as read only.</param> /// <returns></returns> public static RgzArchive Open(string filename, bool isreadonly) { if (string.IsNullOrEmpty(filename)) throw new RgzException(); RgzArchive rgz = new RgzArchive(); rgz.m_FileStream = isreadonly ? File.OpenRead(filename) : File.Open(filename, FileMode.OpenOrCreate); return rgz; }
/// <summary> /// Opens an existing <see cref="RgzArchive"/>. /// </summary> /// <param name="filename">The path to the <see cref="RgzArchive"/>.</param> /// <param name="isreadonly">Wether or not to open the file as read only.</param> /// <returns></returns> public static RgzArchive Open(string filename, bool isreadonly) { if (string.IsNullOrEmpty(filename)) { throw new RgzException(); } RgzArchive rgz = new RgzArchive(); rgz.m_FileStream = isreadonly ? File.OpenRead(filename) : File.Open(filename, FileMode.OpenOrCreate); return(rgz); }
/// <summary> /// Merges another <see cref="RgzArchive"/> with this <see cref="RgzArchive"/>. /// </summary> /// <param name="rgz">The <see cref="RgzArchive"/> to add the current one.</param> public void Merge(RgzArchive rgz) { throw new NotImplementedException(); }