/[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 201 by william, Thu May 31 08:10:25 2012 UTC revision 206 by william, Thu May 31 09:31:57 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, IProcessConfig, IAcceptsPlugin<IConfigPlugin>, IAcceptsExternalMemoryAddress
17      {      {
18          public FloatingMemoryView() {          public FloatingMemoryView() {
19              InitializeComponent();              InitializeComponent();
# Line 30  namespace RomCheater.Docking Line 30  namespace RomCheater.Docking
30          #region IAcceptsPlugin<IConfigPlugin> Members          #region IAcceptsPlugin<IConfigPlugin> Members
31          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
32          #endregion          #endregion
33          //#region IAcceptsMemoryRange members          #region IAcceptsMemoryRange members
34          //private uint MemoryStart { get { return MemView.MemoryStart; } set { MemView.MemoryStart = value; } }          private uint MemoryStart { get { return MemView.MemoryStart; } }
35          //private uint MemorySize { get { return MemView.MemorySize; } set { MemView.MemorySize = value; } }          private uint MemorySize { get { return MemView.MemorySize; } }
36          //#endregion          #endregion
37    
38            #region IAcceptsExternalMemoryAddress
39            public bool AcceptExternalMemoryAddress(uint address)
40            {
41                if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }
42                MemView.GotoAddress(address);
43                return true;
44            }
45            #endregion
46      }      }
47  }  }

Legend:
Removed from v.201  
changed lines
  Added in v.206

  ViewVC Help
Powered by ViewVC 1.1.22