private static TMD GenerateDummyTMD(string title) { TMD tmd; tmd = TMD.Create(new MemoryStream(Properties.Resources.rawksd_tmd)); tmd.TitleID = ((0x00010005UL << 32) | (BigEndianConverter.ToUInt32(Util.Encoding.GetBytes(title)))); tmd.Contents.RemoveAll(c => c.Index != 0); tmd.Contents[0].ContentID = 0; tmd.Contents[0].Size = Properties.Resources.rawksd_savebanner.Length; tmd.Contents[0].Hash = SHA1.Create().ComputeHash(Properties.Resources.rawksd_savebanner); tmd.Fakesign(); return(tmd); }