Beispiel #1
0
 public static void smethod_7(GClass32 gclass32_0, GClass82 gclass82_0, Form form_1)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     Class97.Class100 class100 = new Class97.Class100();
     // ISSUE: reference to a compiler-generated field
     class100.gclass32_0 = gclass32_0;
     // ISSUE: reference to a compiler-generated field
     class100.gclass82_0 = gclass82_0;
     // ISSUE: reference to a compiler-generated field
     class100.form_0 = form_1;
     // ISSUE: reference to a compiler-generated field
     if (class100.gclass82_0 == null)
     {
         // ISSUE: reference to a compiler-generated field
         Class97.smethod_16(class100.form_0);
     }
     else
     {
         if (RadMessageBox.Show("USB Helper will now try to import your save from your Wii U to CEMU. This will OVERWRITE any save you already have on your computer AND on your USB Helper Cloud if enabled. Continue?", "Continue?", MessageBoxButtons.YesNo) == DialogResult.No)
         {
             return;
         }
         // ISSUE: reference to a compiler-generated field
         class100.string_0 = (string)null;
         // ISSUE: reference to a compiler-generated field
         class100.frmWait_0 = new FrmWait("Please wait while USB Helper downloads your save.", false);
         // ISSUE: reference to a compiler-generated method
         Task.Run(new Action(class100.method_0));
         // ISSUE: reference to a compiler-generated field
         int num = (int)class100.frmWait_0.ShowDialog();
         // ISSUE: reference to a compiler-generated field
         if (class100.string_0 != null)
         {
             // ISSUE: reference to a compiler-generated field
             Cemu   cemu             = class100.gclass32_0.method_14(false) as Cemu;
             string fileSaveLocation = cemu.FileSaveLocation;
             GClass6.smethod_5(fileSaveLocation);
             Directory.CreateDirectory(fileSaveLocation);
             // ISSUE: reference to a compiler-generated field
             using (FileStream fileStream = File.OpenRead(class100.string_0))
             {
                 using (ZipArchive source = new ZipArchive((Stream)fileStream))
                     source.ExtractToDirectory(fileSaveLocation);
             }
             string str = Path.Combine(fileSaveLocation, "user");
             if (Directory.Exists(str))
             {
                 try
                 {
                     Directory.Move(((IEnumerable <DirectoryInfo>) new DirectoryInfo(str).GetDirectories()).First <DirectoryInfo>((Func <DirectoryInfo, bool>)(directoryInfo_0 => GClass6.smethod_4(directoryInfo_0.Name))).FullName, Path.Combine(str, "80000001"));
                     if (Settings.Default.EnableCloudSaving)
                     {
                         cemu.method_2(cemu.vmethod_0(), Settings.Default.CloudUserName, Settings.Default.CloudPassWord);
                     }
                 }
                 catch
                 {
                 }
             }
         }
         else
         {
             // ISSUE: reference to a compiler-generated field
             Class97.smethod_15(class100.form_0, "Could not import your save.");
         }
         // ISSUE: reference to a compiler-generated field
         class100.frmWait_0.method_0();
     }
 }