Example #1
0
        private void NetCoreSpec_ServerConnectionLost(object sender, EventArgs e)
        {
            if (UICore.isClosing || UICore.FirstConnect)
            {
                return;
            }

            SyncObjectSingleton.FormExecute(() =>
            {
                if (S.GET <RTC_ConnectionStatus_Form>() != null && !S.GET <RTC_ConnectionStatus_Form>()
                    .IsDisposed)
                {
                    S.GET <RTC_ConnectionStatus_Form>()
                    .lbConnectionStatus.Text =
                        $"{(string)AllSpec.VanguardSpec?[VSPEC.NAME] ?? "Vanguard"} connection timed out";

                    UICore.LockInterface();
                    UI_DefaultGrids.connectionStatus.LoadToMain();
                }

                S.GET <RTC_VmdAct_Form>()
                .cbAutoAddDump.Checked = false;
                GameProtection.WasAutoCorruptRunning = CorruptCore.RtcCore.AutoCorrupt;
                S.GET <UI_CoreForm>().AutoCorrupt    = false;
            });
            GameProtection.Stop(false);

            if (S.GET <UI_CoreForm>()
                .cbUseAutoKillSwitch.Checked&& AllSpec.VanguardSpec != null)
            {
                AutoKillSwitch.KillEmulator();
            }
        }
Example #2
0
        private void pnAutoKillSwitch_MouseClick(object sender, MouseEventArgs e)
        {
            //needed anymore?
            S.GET <UI_CoreForm>().btnLogo_Click(sender, e);

            S.GET <UI_CoreForm>().pbAutoKillSwitchTimeout.Value = S.GET <UI_CoreForm>().pbAutoKillSwitchTimeout.Maximum;
            AutoKillSwitch.ShouldKillswitchFire = true;

            //refactor this to not use string once old coreform is dead
            AutoKillSwitch.KillEmulator(true);
        }
Example #3
0
        private void BtnTriggerKillswitch_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                Point            locate      = e.GetMouseLocation(sender);
                ContextMenuStrip columnsMenu = new ContextMenuStrip();
                columnsMenu.Items.Add("Open Debug window", null, new EventHandler((ob, ev) => { UI_CoreForm.ForceCloudDebug(); }));
                columnsMenu.Show(this, locate);
                return;
            }

            S.GET <UI_CoreForm>().pbAutoKillSwitchTimeout.Value = S.GET <UI_CoreForm>().pbAutoKillSwitchTimeout.Maximum;
            AutoKillSwitch.KillEmulator(true);
        }
Example #4
0
        private void NetCoreSpec_ServerConnectionLost(object sender, EventArgs e)
        {
            UIConnector.ConnectionLostLockout.WaitOne();
            Console.WriteLine("Thread id {0} got Mutex...  (specconnectionlost)", System.Threading.Thread.CurrentThread.ManagedThreadId);

            if (UICore.isClosing || UICore.FirstConnect)
            {
                return;
            }
            SyncObjectSingleton.FormExecute(() =>
            {
                if (S.GET <RTC_ConnectionStatus_Form>() != null && !S.GET <RTC_ConnectionStatus_Form>()
                    .IsDisposed)
                {
                    S.GET <RTC_ConnectionStatus_Form>()
                    .lbConnectionStatus.Text =
                        $"{(string) AllSpec.VanguardSpec?[VSPEC.NAME] ?? "Vanguard"} connection timed out";

                    UICore.LockInterface();
                    UI_DefaultGrids.connectionStatus.LoadToMain();
                }

                S.GET <RTC_VmdAct_Form>()
                .cbAutoAddDump.Checked = false;
                GameProtection.WasAutoCorruptRunning = CorruptCore.RtcCore.AutoCorrupt;
                S.GET <UI_CoreForm>().AutoCorrupt    = false;
            });
            GameProtection.Stop(false);

            if (S.GET <UI_CoreForm>()
                .cbUseAutoKillSwitch.Checked&& AllSpec.VanguardSpec != null)
            {
                AutoKillSwitch.KillEmulator();
            }

            UIConnector.ConnectionLostLockout.ReleaseMutex();
            Console.WriteLine("Thread id {0} released Mutex (specconnectionlost)...", Thread.CurrentThread.ManagedThreadId);
        }
 private void btnBreakCrashLoop_Click(object sender, EventArgs e)
 {
     S.GET <UI_CoreForm>().cbUseAutoKillSwitch.Checked = false;
     AutoKillSwitch.KillEmulator(true);
 }