public object LoadArchive(Stream archiveFileStream, string name) { // Set the stream position to 0 archiveFileStream.Position = 0; // Load the current file PC_FileArchive data = Context.ReadStreamData <PC_FileArchive>(archiveFileStream, name: name, leaveOpen: true); Logger.Info("Read R1 PC archive file with {0} files", data.Entries.Length); return(data); }
/// <summary> /// Configures the archive data with the default settings for the current settings /// </summary> /// <param name="data">The archive data to configure</param> public void ConfigureArchiveData(PC_FileArchive data) { data.PrimaryKitHeader = PrimaryVersion; data.SecondaryKitHeader = SecondaryVersion; data.Ushort_0A = 256; }