Beispiel #1
0
        private static AmiiboTag GetDecryptedAmiibo(string amiiboPath)
        {
            Console.WriteLine("Decrypting Amiibo");
            var amiibo = AmiiboSNHelper.LoadAndDecryptNtag(amiiboPath);

            if (amiibo == null || !amiibo.IsDecrypted)
            {
                Console.WriteLine("Amiibo was not decrypted");
                Console.WriteLine("Check if you are missing the key_retail.bin");
                Environment.Exit(3);
            }

            return(amiibo);
        }
 private void AddAmiibos(string[] files)
 {
     foreach (var file in files)
     {
         var amiibo = AmiiboSNHelper.LoadAndDecryptNtag(file);
         if (amiibo != null)
         {
             if (!this.amiibos.Any(a => AmiiboSNHelper.EqualAmiiboTag(a.AmiiboTag, amiibo)))
             {
                 this.amiibos.Add(new AmiiboTagWrapper(file, amiibo));
             }
             else
             {
                 MessageBox.Show($"{file} was already loaded", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
         }
     }
 }