diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aa5221e..640ec19d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ ### Changelog +#### Version - 2.0.4.4 - 5/11/2020 +* BA2s store file names as UTF8 instead of UTF7 +* Check for a BSA file by header magic not by extension (allows .bsa.bak files to be extracted) +* Exclude the game `Data` directory from compilation #### Version - 2.0.4.3 - 5/10/2020 * Hotfix: tell the WJ CDN downloader to create the parent folder if it doesn't exist diff --git a/Compression.BSA/BA2Reader.cs b/Compression.BSA/BA2Reader.cs index 861e4480..0c5cfbc5 100644 --- a/Compression.BSA/BA2Reader.cs +++ b/Compression.BSA/BA2Reader.cs @@ -94,7 +94,7 @@ namespace Compression.BSA { _rdr.BaseStream.Seek((long) _nameTableOffset, SeekOrigin.Begin); foreach (var file in files) - file.FullPath = Encoding.UTF7.GetString(_rdr.ReadBytes(_rdr.ReadInt16())); + file.FullPath = Encoding.UTF8.GetString(_rdr.ReadBytes(_rdr.ReadInt16())); } Files = files;