mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Fix alignment in SARCs in SARCs.
Should fix potential crashes or texture corruption with these.
This commit is contained in:
parent
cb1d5097b2
commit
a6246ace11
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue