Beispiel #1
0
        public static void CLOSE_GAME(bool loadDefault = false)
        {
            if (DisableRTC)
            {
                return;
            }

            if (CLOSE_GAME_loop_flag == true)
            {
                return;
            }

            CLOSE_GAME_loop_flag = true;

            //RTC_Core.AutoCorrupt = false;

            RTC_PipeEngine.ClearPipes();
            RTC_MemoryDomains.Clear();

            RTC_Core.lastOpenRom = null;

            if (loadDefault)
            {
                RTC_Core.LoadDefaultRom();
            }

            //RTC_RPC.SendToKillSwitch("UNFREEZE");

            CLOSE_GAME_loop_flag = false;
        }
Beispiel #2
0
        public static void LOAD_GAME_BEGIN()
        {
            if (DisableRTC)
            {
                return;
            }

            isNormalAdvance = false;

            RTC_NetCore.HugeOperationStart();

            RTC_HellgenieEngine.ClearCheats(true);
            RTC_PipeEngine.ClearPipes(true);
        }
Beispiel #3
0
        static void STEP_REWIND()
        {
            if (DisableRTC)
            {
                return;
            }

            if (RTC_Core.ClearCheatsOnRewind)
            {
                RTC_HellgenieEngine.ClearCheats();
            }

            if (RTC_Core.ClearPipesOnRewind)
            {
                RTC_PipeEngine.ClearPipes();
            }
        }
 private void btnClearPipes_Click(object sender, EventArgs e)
 {
     RTC_PipeEngine.ClearPipes();
 }
        private void cbSelectedEngine_SelectedIndexChanged(object sender, EventArgs e)
        {
            gbNightmareEngine.Visible   = false;
            gbHellgenieEngine.Visible   = false;
            gbDistortionEngine.Visible  = false;
            gbFreezeEngine.Visible      = false;
            gbPipeEngine.Visible        = false;
            gbVectorEngine.Visible      = false;
            gbExternalRomPlugin.Visible = false;

            pnCustomPrecision.Visible = false;

            RTC_Core.coreForm.btnAutoCorrupt.Visible    = true;
            RTC_Core.ghForm.pnIntensity.Visible         = true;
            RTC_Core.ecForm.pnGeneralParameters.Visible = true;

            switch (cbSelectedEngine.SelectedItem.ToString())
            {
            case "Nightmare Engine":
                RTC_Core.SelectedEngine   = CorruptionEngine.NIGHTMARE;
                gbNightmareEngine.Visible = true;
                pnCustomPrecision.Visible = true;
                break;

            case "Hellgenie Engine":
                RTC_Core.SelectedEngine   = CorruptionEngine.HELLGENIE;
                gbHellgenieEngine.Visible = true;
                pnCustomPrecision.Visible = true;
                break;

            case "Distortion Engine":
                RTC_Core.SelectedEngine    = CorruptionEngine.DISTORTION;
                gbDistortionEngine.Visible = true;
                pnCustomPrecision.Visible  = true;
                break;

            case "Freeze Engine":
                RTC_Core.SelectedEngine   = CorruptionEngine.FREEZE;
                gbFreezeEngine.Visible    = true;
                pnCustomPrecision.Visible = true;
                break;

            case "Pipe Engine":
                RTC_Core.SelectedEngine   = CorruptionEngine.PIPE;
                gbPipeEngine.Visible      = true;
                pnCustomPrecision.Visible = true;
                break;

            case "Vector Engine":
                RTC_Core.SelectedEngine = CorruptionEngine.VECTOR;
                gbVectorEngine.Visible  = true;
                break;

            case "External ROM Plugin":

                RTC_Core.SelectedEngine     = CorruptionEngine.EXTERNALROM;
                gbExternalRomPlugin.Visible = true;

                RTC_Core.coreForm.AutoCorrupt               = false;
                RTC_Core.coreForm.btnAutoCorrupt.Visible    = false;
                RTC_Core.ecForm.pnGeneralParameters.Visible = false;

                RTC_Core.ghForm.pnIntensity.Visible = false;
                break;

            default:
                break;
            }

            RTC_Core.SendCommandToBizhawk(new RTC_Command(CommandType.REMOTE_SET_ENGINE)
            {
                objectValue = RTC_Core.SelectedEngine
            });

            if (cbSelectedEngine.SelectedItem.ToString() == "External ROM Plugin")
            {
                labelBlastRadius.Visible     = false;
                labelIntensity.Visible       = false;
                labelIntensityTimes.Visible  = false;
                labelErrorDelay.Visible      = false;
                labelErrorDelaySteps.Visible = false;
                nmErrorDelay.Visible         = false;
                nmIntensity.Visible          = false;
                track_ErrorDelay.Visible     = false;
                track_Intensity.Visible      = false;
                cbBlastRadius.Visible        = false;
            }
            else if (cbSelectedEngine.SelectedItem.ToString() == "Freeze Engine")
            {
                labelBlastRadius.Visible     = true;
                labelIntensity.Visible       = true;
                labelIntensityTimes.Visible  = true;
                labelErrorDelay.Visible      = true;
                labelErrorDelaySteps.Visible = true;
                nmErrorDelay.Visible         = true;
                nmIntensity.Visible          = true;
                track_ErrorDelay.Visible     = true;
                track_Intensity.Visible      = true;
                cbBlastRadius.Visible        = true;
            }
            else
            {
                labelBlastRadius.Visible     = true;
                labelIntensity.Visible       = true;
                labelIntensityTimes.Visible  = true;
                labelErrorDelay.Visible      = true;
                labelErrorDelaySteps.Visible = true;
                nmErrorDelay.Visible         = true;
                nmIntensity.Visible          = true;
                track_ErrorDelay.Visible     = true;
                track_Intensity.Visible      = true;
                cbBlastRadius.Visible        = true;
            }

            cbSelectedEngine.BringToFront();

            RTC_HellgenieEngine.ClearCheats();
            RTC_PipeEngine.ClearPipes();
        }
 private static void PreApplyStashkey()
 {
     RTC_HellgenieEngine.ClearCheats(true);
     RTC_PipeEngine.ClearPipes(true);
 }