public void SetSeedAndSize() { NinjaSamurai samurai = new NinjaSamurai(); for (ushort i = 0; i < titles.Count; i++) { Title curr_title = titles[i]; samurai.SetSeedAndSize(curr_title, out curr_title); if (curr_title.Size == null) { callint(); callfail(curr_title); continue; } new_titles.Add(curr_title); callint();; } calllist(new_titles); }
public void SetMetadata() { NinjaSamurai samurai = new NinjaSamurai(); for (ushort i = 0; i < titles.Count; i++) { Title curr_title = titles[i]; samurai.SetMetadata(curr_title, out curr_title); if (curr_title.Name.Length < 1) { callint(); callfail(curr_title); continue; } new_titles.Add(curr_title); callint(); } calllist(new_titles); }
public void GetNSUIDs() { NinjaSamurai ninja = new NinjaSamurai(); List <Title> titles = new List <Title>(); string title_base = null; if (type.Equals("eShopApp")) { title_base = "00040000"; } else if (type.Equals("Demo")) { title_base = "00040002"; } else if (type.Equals("UpdatePatch")) { title_base = "0004000E"; } for (uint i = start; i < start + count * 0x100; i += 0x100) { string title_id = title_base + i.ToString("X8"); string ns_id = ninja.GetNSUID(title_id); if (ns_id.Length == 14) { callint(); titles.Add(new Title(title_id, ns_id, type)); //Console.WriteLine(string.Format("TID: {0} NSIUD: {1} Type: {2}", title_id, ns_id, type)); } else { callint(); callfail(null); //Console.WriteLine(string.Format("TID: {0} NSIUD: None Type: {1}", title_id, type)); } } callback(titles); }