示例#1
0
        public void method_2(string string_2, string string_3, string string_4)
        {
            if (string_2 == null)
            {
                return;
            }
            string str = Path.Combine(Path.GetDirectoryName(string_2), Convert.ToBase64String(Encoding.UTF8.GetBytes(string_3 + " " + string_4 + " " + this.gclass30_0.TitleId.IdRaw)));

            GClass6.smethod_6(str);
            System.IO.File.Move(string_2, str);
            string text = Class67.smethod_14(str, string.Format("{0}/saves/upload_save_b64.php", (object)Class67.String_1));

            if (!(text != "OK"))
            {
                return;
            }
            int num = (int)RadMessageBox.Show(text);
        }
示例#2
0
        private void cmdUploadSave_Click(object sender, EventArgs e)
        {
            string string_2 = this.gclass32_0.method_14(false).vmethod_0();

            if (string_2 == null)
            {
                int num1 = (int)RadMessageBox.Show("An error occured while trying to compile your save. Do you have a local save to share?");
            }
            else
            {
                frmCommunitySaveDescription communitySaveDescription = new frmCommunitySaveDescription();
                if (communitySaveDescription.ShowDialog() != DialogResult.OK)
                {
                    int num2 = (int)RadMessageBox.Show("The process was cancelled.");
                }
                else
                {
                    string str = Class67.smethod_14(string_2, string.Format("{0}/communitysaves/upload.php", (object)Class67.CloudWiiUUSBHelperURL));
                    if (str.Length != 32)
                    {
                        int num3 = (int)RadMessageBox.Show("An error occured while uploading your save.");
                    }
                    else if (GClass6.smethod_20(string.Format("{0}/communitysaves/add.php", (object)Class67.CloudWiiUUSBHelperURL), new NameValueCollection()
                    {
                        { "titleid", this.gclass32_0.TitleId.IdRaw }, { "md5", str }, { "description", communitySaveDescription.Description }
                    }) == "Ok")
                    {
                        int num4 = (int)RadMessageBox.Show("Thank you for your contribution!");
                        this.method_0();
                    }
                    else
                    {
                        int num5 = (int)RadMessageBox.Show("Your save could not be added. Perhaps a similar save already exists?");
                    }
                }
            }
        }