private static void pkg2edat(string infile)
        {
            string str = null;

            str = new pkg2sfo().DecryptPKGFile(infile);
            if (Directory.Exists("temp"))
            {
                Directory.Delete("temp", true);
            }
            if (str.EndsWith(".edat"))
            {
                Console.WriteLine("Created " + str);
            }
        }
Example #2
0
        private static void pkg2sfo(string infile)
        {
            String strAppDir = Path.GetDirectoryName(
                Assembly.GetExecutingAssembly().GetName().CodeBase);
            string  path            = strAppDir.Replace("file:\\", "");
            string  sourceDirectory = path;
            string  FileNamed       = infile;
            string  OutputFile      = "";
            string  outFile         = null;
            pkg2sfo instance        = new pkg2sfo();

            outFile = instance.DecryptPKGFile(infile);
            if (outFile.EndsWith(".SFO"))
            {
                Console.WriteLine("Created " + outFile);
                File.Move(outFile, path);
            }
        }