Fix alignment in SARCs in SARCs.
Should fix potential crashes or texture corruption with these.
This commit is contained in:
parent
cb1d5097b2
commit
a6246ace11
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user