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) { var fileName = Path.GetFileName(outputFile); var extension = Path.GetExtension(outputFile); if (extension.StartsWith(".unity3d")) { EncryptedUnity3DFile.Repack(inputPath, outputFile, compress); } }
public override void ExtractFile(string inputFile, string outputPath) { var fileName = Path.GetFileName(inputFile); var extension = Path.GetExtension(inputFile); if (extension.StartsWith(".unity3d")) { EncryptedUnity3DFile.Extract(inputFile, outputPath); } }