diff --git a/File_Format_Library/FileFormats/Audio/Archives/PCK.cs b/File_Format_Library/FileFormats/Audio/Archives/PCK.cs index e86f29d2..05a9dd17 100644 --- a/File_Format_Library/FileFormats/Audio/Archives/PCK.cs +++ b/File_Format_Library/FileFormats/Audio/Archives/PCK.cs @@ -43,23 +43,22 @@ namespace FirstPlugin public bool CanReplaceFiles { get; set; } = true; public bool CanDeleteFiles { get; set; } = true; - public void ClearFiles() { Entries.Clear(); } + public void ClearFiles() { Sounds.Clear(); } - public List Entries = new List(); - public IEnumerable Files => Entries; + public List Sounds = new List(); + public IEnumerable Files => Sounds; public uint Version = 1; public uint Flags; public List Languages = new List(); public List Banks = new List(); - public List Sounds = new List(); private System.IO.Stream _stream = null; public void Load(System.IO.Stream stream) { - Entries.Clear(); + Sounds.Clear(); _stream = stream; Text = FileName; @@ -116,7 +115,6 @@ namespace FirstPlugin for (int i = 0; i < SoundsCount; i++) { var entry = new AudioEntry(); - Entries.Add(entry); Sounds.Add(entry); entry.HashID = reader.ReadUInt32(); @@ -135,7 +133,7 @@ namespace FirstPlugin public bool AddFile(ArchiveFileInfo archiveFileInfo) { - Entries.Add(new AudioEntry() + Sounds.Add(new AudioEntry() { FileName = archiveFileInfo.FileName, FileDataStream = archiveFileInfo.FileDataStream, @@ -149,7 +147,7 @@ namespace FirstPlugin public bool DeleteFile(ArchiveFileInfo archiveFileInfo) { - Entries.Remove((AudioEntry)archiveFileInfo); + Sounds.Remove((AudioEntry)archiveFileInfo); return true; }