Fix alignment in SARCs in SARCs.

Should fix potential crashes or texture corruption with these.
This commit is contained in:
KillzXGaming 2019-11-27 09:12:22 -05:00
parent cb1d5097b2
commit a6246ace11

View file

@ -23,6 +23,9 @@ namespace Toolbox.Library.IO
var FileCompression = format.IFileInfo.FileCompression;
if (FileCompression == null) return data;
if (FileCompression is Yaz0)
((Yaz0)FileCompression).Alignment = Alignment;
return FileCompression.Compress(new MemoryStream(data)).ToArray();
}