Example #1
0
 internal static void smethod_0()
 {
     try
     {
         string str1 = Path.Combine(GClass88.DirectoryCache, "packs");
         Directory.CreateDirectory(str1);
         GClass27.smethod_7("https://github.com/slashiee/cemu_graphic_packs/archive/master.zip", str1);
         string[] files = Directory.GetFiles(str1, "*", System.IO.SearchOption.AllDirectories);
         string   str2  = Path.Combine(new Cemu((GClass30)null, false).Root_BIN_Path, "graphicPacks");
         Directory.CreateDirectory(str2);
         foreach (string path in ((IEnumerable <string>)files).Where <string>((Func <string, bool>)(string_0 => string_0.Contains("rules.txt"))))
         {
             string directoryName = Path.GetDirectoryName(path);
             string str3          = Path.Combine(str2, new DirectoryInfo(Path.GetDirectoryName(path)).Name);
             if (Directory.Exists(Path.Combine(str2, str3)))
             {
                 Directory.Delete(str3, true);
             }
             try
             {
                 FileSystem.MoveDirectory(directoryName, str3);
             }
             catch
             {
             }
         }
     }
     catch
     {
     }
 }
Example #2
0
        private void cmdImport_Click(object sender, EventArgs e)
        {
            if (this.lstSaves.SelectedItem == null || RadMessageBox.Show("You are about to import a save. If you already have any local save data, it will be OVERWRITTEN. If you are using Cloud Saving, your cloud save will also be OVERWRITTEN. Continue?", "Continue?", MessageBoxButtons.YesNo) != DialogResult.Yes)
            {
                return;
            }
            GClass95 gclass95 = this.gclass32_0.method_14(false);

            GClass6.smethod_5(gclass95.FileSaveLocation);
            GClass27.smethod_7(string.Format("{0}/communitysaves/cdn/{1}", (object)Class67.CloudWiiUUSBHelperURL, (object)(this.lstSaves.SelectedItem.Tag as frmCommunitySaves.Class131).Md5), gclass95.FileSaveLocation);
            if (Settings.Default.EnableCloudSaving)
            {
                gclass95.method_2(gclass95.vmethod_0(), Settings.Default.CloudUserName, Settings.Default.CloudPassWord);
            }
            int num = (int)RadMessageBox.Show("Save imported!");
        }
Example #3
0
 public static void smethod_11(string string_0)
 {
     GClass27.smethod_7(string.Format("{0}/res/emulators/extract_toolkit.zip", (object)Class67.CDNWiiUUSBHelperURL), string_0);
 }
Example #4
0
 public static void smethod_10(string string_0)
 {
     GClass27.smethod_7(string.Format("{0}/res/starter/starter.zip", (object)Class67.CDNWiiUUSBHelperURL), string_0);
 }
Example #5
0
 public static void smethod_10(string string_0)
 {
     GClass27.smethod_7(string.Format("{0}/res/starter/starter.zip", (object)Class67.String_2), string_0);
 }