/[RomCheater]/trunk/RomCheater/Docking/FloatingMemoryView.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemoryView.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 198 by william, Thu May 31 07:13:43 2012 UTC revision 256 by william, Sun Jun 3 16:50:16 2012 UTC
# Line 13  using System.Diagnostics; Line 13  using System.Diagnostics;
13    
14  namespace RomCheater.Docking  namespace RomCheater.Docking
15  {  {
16      public partial class FloatingMemoryView : DockContent, IProcessConfig, IAcceptsPlugin<IConfigPlugin>      public partial class FloatingMemoryView : DockContent,
17            IAcceptsPlugin<IConfigPlugin>,
18            IAcceptsProcess<Process>,
19            IAcceptsProcessAndConfig, IAcceptsExternalMemoryAddress
20      {      {
21          public FloatingMemoryView() {          public FloatingMemoryView() {
22              InitializeComponent();              InitializeComponent();
23              this.AcceptedPlugin = null;              this.AcceptedPlugin = null;
24              this.AcceptedProcess = null;              this.AcceptedProcess = null;
25              this.MemoryStart = uint.MinValue;              //this.MemoryStart = uint.MinValue;
26              this.MemorySize = uint.MaxValue;              //this.MemorySize = uint.MaxValue;
27          }          }
28          public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }          public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
29          public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }          public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }
30          #region IProcessConfig Members          #region  IAcceptsProcess<Process> Members
31          public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } }          public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } }
32          #endregion          #endregion
33          #region IAcceptsPlugin<IConfigPlugin> Members          #region IAcceptsPlugin<IConfigPlugin> Members
34          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
35          #endregion          #endregion
36          #region IAcceptsMemoryRange members          #region IAcceptsMemoryRange members
37          private uint MemoryStart { get { return MemView.MemoryStart; } set { MemView.MemoryStart = value; } }          private int MemoryStart { get { return MemView.MemoryStart; } }
38          private uint MemorySize { get { return MemView.MemorySize; } set { MemView.MemorySize = value; } }          private uint MemorySize { get { return MemView.MemorySize; } }
39            #endregion
40    
41            #region IAcceptsExternalMemoryAddress
42            public bool AcceptExternalMemoryAddress(int address)
43            {
44                if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }
45                MemView.GotoAddress(address);
46                return true;
47            }
48          #endregion          #endregion
49      }      }
50  }  }

Legend:
Removed from v.198  
changed lines
  Added in v.256

  ViewVC Help
Powered by ViewVC 1.1.22