コード例 #1
0
ファイル: GClass30.cs プロジェクト: nobodyMi/WiiU_USB_Helper
 public string method_12()
 {
     if (this is GClass32)
     {
         return(string.Format("{0} [{1}]", (object)GClass30.smethod_2(this.Name), (object)((GClass32)this).ProductId));
     }
     return(string.Format("{0} (unpacked)", (object)GClass30.smethod_2(this.ToString())));
 }
コード例 #2
0
        private static void smethod_5(GClass32 gclass32_0, GClass95 gclass95_0)
        {
            string str1 = System.IO.Path.Combine(GClass88.DirectoryCache, "icons");
            string str2 = System.IO.Path.Combine(str1, gclass32_0.TitleId.IdRaw + ".ico");

            System.IO.Directory.CreateDirectory(str1);
            using (MemoryStream memoryStream = new MemoryStream(new GClass78().DownloadFile(gclass32_0.IconUrl)))
            {
                using (FileStream fileStream = System.IO.File.Create(str2))
                    GClass124.smethod_0((Bitmap)Image.FromStream((Stream)memoryStream), (Stream)fileStream, 128, false);
            }
            string string_2 = GClass128.smethod_4(gclass32_0, gclass95_0);

            GClass128.smethod_6((GClass30)gclass32_0, GClass30.smethod_2(gclass32_0.Name), Environment.GetFolderPath(Environment.SpecialFolder.Desktop), string_2, str2, gclass32_0.Name, "");
        }