Exemple #1
0
        public static void ExtractTitlekeys(string inFolder, Keyset keyset, Output Out)
        {
            var dirExtracted = new DirectoryInfo(inFolder);
            var TikFiles     = dirExtracted.GetFiles("*.tik");

            foreach (var file in TikFiles)
            {
                using (var TicketFile = File.Open($"{inFolder}/{file.Name}", FileMode.Open))
                {
                    TitleKeyTools.ExtractKey(TicketFile, file.Name, keyset, Out);
                }
            }
        }
Exemple #2
0
 public static void GetTitleKeys(Xci xci, Keyset keyset, Output Out)
 {
     foreach (var item in FileIterator(xci, keyset, Out))
     {
         var fileName = item.subPfsFile.Name;
         if (fileName.EndsWith(".tik"))
         {
             using (var TicketFile = item.subPfs.OpenFile(fileName, OpenMode.Read).AsStream())
             {
                 TitleKeyTools.ExtractKey(TicketFile, fileName, keyset, Out);
             }
         }
     }
 }
Exemple #3
0
        public static void GetTitlekey(PartitionFileSystem pfs, Keyset keyset, Output Out)
        {
            IDirectory  sourceRoot = pfs.OpenDirectory("/", OpenDirectoryMode.All);
            IFileSystem sourceFs   = sourceRoot.ParentFileSystem;

            foreach (var entry in FileIterator(sourceRoot))
            {
                if (entry.Name.EndsWith(".tik"))
                {
                    using (var TicketFile = sourceFs.OpenFile(entry.Name, OpenMode.Read).AsStream())
                    {
                        TitleKeyTools.ExtractKey(TicketFile, entry.Name, keyset, Out);
                    }
                }
            }
        }