/[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 275 by william, Sun Jun 3 16:50:16 2012 UTC revision 276 by william, Sun Jun 3 22:04:37 2012 UTC
# Line 16  namespace RomCheater.Docking Line 16  namespace RomCheater.Docking
16      public partial class FloatingMemoryView : DockContent,      public partial class FloatingMemoryView : DockContent,
17          IAcceptsPlugin<IConfigPlugin>,          IAcceptsPlugin<IConfigPlugin>,
18          IAcceptsProcess<Process>,          IAcceptsProcess<Process>,
19          IAcceptsProcessAndConfig, IAcceptsExternalMemoryAddress          IAcceptsProcessAndConfig, IBrowseMemoryRegion
20      {      {
21          public FloatingMemoryView() {          public FloatingMemoryView() {
22              InitializeComponent();              InitializeComponent();
# Line 38  namespace RomCheater.Docking Line 38  namespace RomCheater.Docking
38          private uint MemorySize { get { return MemView.MemorySize; } }          private uint MemorySize { get { return MemView.MemorySize; } }
39          #endregion          #endregion
40    
41          #region IAcceptsExternalMemoryAddress          #region IBrowseMemoryRegion
42          public bool AcceptExternalMemoryAddress(int address)          public bool BrowseMemoryRegion(int MemoryRegion)
43          {          {
44              if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }              if (!((MemoryStart <= MemoryRegion) && (MemoryRegion <= (MemoryStart + MemorySize)))) { return false; }
45              MemView.GotoAddress(address);              MemView.GotoAddress(MemoryRegion);
46              return true;              return true;
47          }          }
48          #endregion          #endregion

Legend:
Removed from v.275  
changed lines
  Added in v.276

  ViewVC Help
Powered by ViewVC 1.1.22