BA2 file names should be in UTF8

This commit is contained in:
Timothy Baldridge 2020-05-11 07:20:09 -06:00
parent 2b5adb3d8e
commit 197036d916
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;