Ejemplo n.º 1
0
        protected override void OnClosing(CancelEventArgs e)
        {
            base.OnClosing(e);

            DebuggerInfo cfg = ConfigManager.Config.Debug.Debugger;

            cfg.WindowSize       = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            cfg.WindowLocation   = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            cfg.SplitterDistance = ctrlSplitContainer.SplitterDistance;

            _entityBinder.UpdateObject();
            ConfigManager.ApplyChanges();

            switch (_cpuType)
            {
            case CpuType.Cpu: ConfigApi.SetDebuggerFlag(DebuggerFlags.CpuDebuggerEnabled, false); break;

            case CpuType.Spc: ConfigApi.SetDebuggerFlag(DebuggerFlags.SpcDebuggerEnabled, false); break;

            case CpuType.Sa1: ConfigApi.SetDebuggerFlag(DebuggerFlags.Sa1DebuggerEnabled, false); break;

            case CpuType.Gsu: ConfigApi.SetDebuggerFlag(DebuggerFlags.GsuDebuggerEnabled, false); break;
            }

            BreakpointManager.RemoveCpuType(_cpuType);

            if (this._notifListener != null)
            {
                this._notifListener.Dispose();
                this._notifListener = null;
            }
        }
Ejemplo n.º 2
0
        protected override void OnClosing(CancelEventArgs e)
        {
            base.OnClosing(e);


            DebuggerInfo cfg = ConfigManager.Config.Debug.Debugger;

            cfg.WindowSize     = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            cfg.WindowLocation = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            _entityBinder.UpdateObject();
            ConfigManager.ApplyChanges();

            ConfigApi.SetDebuggerFlag(_cpuType == CpuType.Cpu ? DebuggerFlags.CpuDebuggerEnabled : DebuggerFlags.SpcDebuggerEnabled, false);
            BreakpointManager.RemoveCpuType(_cpuType);

            if (this._notifListener != null)
            {
                this._notifListener.Dispose();
                this._notifListener = null;
            }
        }