Ejemplo n.º 1
0
 /// <summary>
 /// Initializes an empty <see cref="SARC"/>.
 /// </summary>
 /// <param name="files">Files inside the <see cref="SARC"/>.</param>
 /// <param name="baseFolder">Root location of the archive</param>
 public SARC(IReadOnlyList <string> files, string baseFolder)
 {
     Header = new SARCHeader();
     SFAT   = new SFAT(baseFolder, files);
     SFNT   = new SFNT();
     Files  = new byte[]?[SFAT.Entries.Count];
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes an empty <see cref="SARC"/>.
 /// </summary>
 /// <param name="files">Files inside the <see cref="SARC"/>.</param>
 /// <param name="baseFolder">Root location of the archive</param>
 public SARC(IReadOnlyList <string> files, string baseFolder)
 {
     Header = new SARCHeader();
     SFAT   = new SFAT(baseFolder, files);
     SFNT   = new SFNT();
 }