Example #1
0
        private void btnCloudSave_Click(object sender, EventArgs e)
        {
            RTC_RPC.SendToKillSwitch("FREEZE");

            BlastLayer bl;
            StashKey   key;

            if (lbStashHistory.SelectedIndex != -1)
            {
                key = (lbStashHistory.SelectedItem as StashKey);
            }
            else if (lbStockpile.SelectedIndex != -1)
            {
                key = (lbStockpile.SelectedItem as StashKey);
            }
            else
            {
                return;
            }


            bl      = key.blastlayer;
            bl.CCGD = new CorruptCloudGameData(key);

            tbCorruptCloudCode.Text = RTC_CorruptCloud.CloudSave(bl);

            RTC_RPC.SendToKillSwitch("UNFREEZE");
        }
Example #2
0
        private void btnCloudInject_Click(object sender, EventArgs e)
        {
            if (!IsValidCCC())
            {
                GlobalWin.Sound.StopSound();
                MessageBox.Show("The CorruptCloud Code entered below isn't valid");
                GlobalWin.Sound.StartSound();
                return;
            }
            GlobalWin.Sound.StopSound();
            RTC_RPC.SendToKillSwitch("FREEZE");

            BlastLayer bl = RTC_CorruptCloud.CloudLoad(tbCorruptCloudCode.Text);

            if (!bl.CCGD.CheckCompatibility())
            {
                GlobalWin.Sound.StartSound();
                return;
            }

            if (cbAutoLoadState.Checked)
            {
                if (btnParentKeys[Convert.ToInt32(currentSelectedState)] != null)
                {
                    LoadState();
                }
                else
                {
                    GlobalWin.Sound.StopSound();
                    MessageBox.Show("There is no SaveState in the selected box,\nPress 'Switch: Save/Load State' then Press 'SAVE'");
                    GlobalWin.Sound.StartSound();
                    RTC_RPC.SendToKillSwitch("UNFREEZE");
                    return;
                }
            }


            if (bl != null)
            {
                bl.Apply();
            }
            else
            {
                GlobalWin.Sound.StartSound();
                return;
            }

            if (bl != null)
            {
                IsCorruptionApplied = true;
            }


            if (cbStashInjected.Checked)
            {
                RTC_Core.currentStashkey = new StashKey(RTC_Core.GetRandomKey(), btnParentKeys[Convert.ToInt32(currentSelectedState)], bl);


                DontLoadSelectedStash = true;
                lbStashHistory.Items.Add(RTC_Core.currentStashkey);
                lbStashHistory.SelectedIndex = lbStashHistory.Items.Count - 1;
                lbStockpile.ClearSelected();
            }

            if (cbRenderAtCorrupt.Checked)
            {
                StartRender();
            }

            GlobalWin.Sound.StartSound();
            RTC_RPC.SendToKillSwitch("UNFREEZE");
        }
Example #3
0
        private void btnCloudCorrupt_Click(object sender, EventArgs e)
        {
            if (!IsValidCCC())
            {
                GlobalWin.Sound.StopSound();
                MessageBox.Show("The CorruptCloud Code entered below isn't valid");
                GlobalWin.Sound.StartSound();
                return;
            }



            GlobalWin.Sound.StopSound();
            RTC_RPC.SendToKillSwitch("FREEZE");


            BlastLayer bl = RTC_CorruptCloud.CloudLoad(tbCorruptCloudCode.Text);

            if (!bl.CCGD.CheckCompatibility())
            {
                GlobalWin.Sound.StartSound();
                RTC_RPC.SendToKillSwitch("UNFREEZE");
                return;
            }

            if (cbAutoLoadState.Checked)
            {
                bl.CCGD.PutBackSavestate();
                LoadState(bl.CCGD.originalKey, bl.CCGD.originalGameSystem, bl.CCGD.originalGameName);
            }

            if (bl != null)
            {
                bl.Apply();
            }
            else
            {
                return;
            }


            if (bl != null)
            {
                IsCorruptionApplied = true;
            }

            if (cbStashCorrupted.Checked)
            {
                RTC_Core.currentStashkey = new StashKey(RTC_Core.GetRandomKey(), bl.CCGD.originalKey, bl);

                DontLoadSelectedStash = true;
                lbStashHistory.Items.Add(RTC_Core.currentStashkey);
                lbStashHistory.SelectedIndex = lbStashHistory.Items.Count - 1;
                lbStockpile.ClearSelected();
            }

            if (cbRenderAtCorrupt.Checked)
            {
                StartRender();
            }

            RTC_RPC.SendToKillSwitch("UNFREEZE");
            GlobalWin.Sound.StartSound();
        }