コード例 #1
0
        private void XBoxJPFormat_Click(object sender, EventArgs e)
        {
            if (CurrentWSG.Platform == "X360JP")
            {
                return;
            }

            if ((CurrentWSG.ContainsRawData == true) && (CurrentWSG.EndianWsg != ByteOrder.BigEndian))
            {
                if (UIAction_RemoveRawData() == false)
                {
                    return;
                }
            }

            if (CurrentWSG.DeviceId == null)
            {
                XBoxIDDialog dlgXBoxID = new XBoxIDDialog();
                if (dlgXBoxID.ShowDialog() == DialogResult.OK)
                {
                    CurrentWSG.ProfileId = dlgXBoxID.ID.ProfileID;
                    int DeviceIDLength = dlgXBoxID.ID.DeviceID.Count();
                    CurrentWSG.DeviceId = new byte[DeviceIDLength];
                    Array.Copy(dlgXBoxID.ID.DeviceID, CurrentWSG.DeviceId, DeviceIDLength);
                }
                else
                {
                    return;
                }
            }
            CurrentWSG.Platform  = "X360JP";
            CurrentWSG.EndianWsg = ByteOrder.BigEndian;
            DoWindowTitle();
            CurrentWSG.OpenedWsg = "";
            Save.Enabled         = false;
        }
コード例 #2
0
        private void XBoxFormat_Click(object sender, EventArgs e)
        {
            if (CurrentWSG.Platform == "X360")
                return;
            if ((CurrentWSG.ContainsRawData == true) && (CurrentWSG.EndianWSG != ByteOrder.BigEndian))
            {
                MessageBox.Show("This savegame contains raw data that could not be parsed so it cannot be exported to a different machine byte order.");
                return;
            }

            if (CurrentWSG.DeviceID == null)
            {
                XBoxIDDialog dlgXBoxID = new XBoxIDDialog();
                if (dlgXBoxID.ShowDialog() == DialogResult.OK)
                {
                    CurrentWSG.ProfileID = dlgXBoxID.ID.ProfileID;
                    int DeviceIDLength = dlgXBoxID.ID.DeviceID.Count();
                    CurrentWSG.DeviceID = new byte[DeviceIDLength];
                    Array.Copy(dlgXBoxID.ID.DeviceID, CurrentWSG.DeviceID, DeviceIDLength);
                }
                else
                    return;
            }
            CurrentWSG.Platform = "X360";
            CurrentWSG.EndianWSG = ByteOrder.BigEndian;
            DoWindowTitle();
            CurrentWSG.OpenedWSG = "";
            Save.Enabled = false;
        }