public override void RepackFile(string inputPath, string outputFile, bool compress) { var fileName = Path.GetFileName(outputFile); var extension = Path.GetExtension(outputFile); var unencryptedFiles = new[] { "film01_confront.unity3d", "film02_confront.unity3d", }; if (!extension.StartsWith(".unity3d")) { return; } if (unencryptedFiles.Contains(fileName)) { Unity3DFile.Repack(inputPath, outputFile, compress); } else { EncryptedUnity3DFile.Repack(inputPath, outputFile, compress); } }
public override void ExtractFile(string inputFile, string outputPath) { var fileName = Path.GetFileName(inputFile); var extension = Path.GetExtension(inputFile); var unencryptedFiles = new[] { "film01_confront.unity3d", "film02_confront.unity3d", }; if (!extension.StartsWith(".unity3d")) { return; } if (unencryptedFiles.Contains(fileName)) { Unity3DFile.Extract(inputFile, outputPath); } else { EncryptedUnity3DFile.Extract(inputFile, outputPath); } }
public override void RepackFile(string inputPath, string outputFile, bool compress) { string extension = Path.GetExtension(outputFile); if (AllowedExtensions.Contains(extension)) { Unity3DFile.Repack(inputPath, outputFile, compress); } }
public override void ExtractFile(string inputFile, string outputPath) { string extension = Path.GetExtension(inputFile); if (AllowedExtensions.Contains(extension)) { Unity3DFile.Extract(inputFile, outputPath); } }
public virtual void RepackFile(string inputPath, string outputFile, bool compress) { var fileName = Path.GetFileName(outputFile); var extension = Path.GetExtension(outputFile); if (AllowedExtensions.Contains(extension)) { Unity3DFile.Repack(inputPath, outputFile, compress); } }
public virtual void ExtractFile(string inputFile, string outputPath) { var fileName = Path.GetFileName(inputFile); var extension = Path.GetExtension(inputFile); if (AllowedExtensions.Contains(extension)) { Unity3DFile.Extract(inputFile, outputPath); } }
public override void RepackFile(string inputPath, string outputFile, bool compress) { string fileName = Path.GetFileName(outputFile); string extension = Path.GetExtension(outputFile); if (fileName == "dialoguebundle") { UnityFsFile.Repack(inputPath, outputFile, compress); } else if (AllowedExtensions.Contains(extension)) { Unity3DFile.Repack(inputPath, outputFile, compress); } }
public override void ExtractFile(string inputFile, string outputPath) { string fileName = Path.GetFileName(inputFile); string extension = Path.GetExtension(inputFile); if (fileName == "dialoguebundle") { UnityFsFile.Extract(inputFile, outputPath); } else if (AllowedExtensions.Contains(extension)) { Unity3DFile.Extract(inputFile, outputPath); } }