mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 13:58:26 +00:00
Only update compression for uncompressed external types
This commit is contained in:
parent
826a96b265
commit
d302c38563
1 changed files with 8 additions and 5 deletions
|
@ -815,11 +815,14 @@ namespace FirstPlugin
|
|||
{
|
||||
//Ensure it uses mc compressor for save
|
||||
this.IFileInfo.FileIsCompressed = true;
|
||||
// this.IFileInfo.FileCompression = new MeshCodecFormat();
|
||||
if (!this.FileName.EndsWith(".mc"))
|
||||
this.FileName += ".mc";
|
||||
if (!this.FilePath.EndsWith(".mc"))
|
||||
this.FilePath += ".mc";
|
||||
if (this.IFileInfo.FileCompression == null)
|
||||
{
|
||||
// this.IFileInfo.FileCompression = new MeshCodecFormat();
|
||||
if (!this.FileName.EndsWith(".mc"))
|
||||
this.FileName += ".mc";
|
||||
if (!this.FilePath.EndsWith(".mc"))
|
||||
this.FilePath += ".mc";
|
||||
}
|
||||
}
|
||||
if (externalFlags.HasFlag(MeshCodec.ExternalFlags.HasExternalString))
|
||||
MeshCodec.Prepare();
|
||||
|
|
Loading…
Add table
Reference in a new issue