/[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 256 by william, Sun Jun 3 16:50:16 2012 UTC revision 287 by william, Tue Jun 5 08:52:07 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,
20            IBrowseMemoryRegion,
21            IAcceptsMemoryRange
22      {      {
23          public FloatingMemoryView() {          public FloatingMemoryView() {
24              InitializeComponent();              InitializeComponent();
# Line 34  namespace RomCheater.Docking Line 36  namespace RomCheater.Docking
36          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
37          #endregion          #endregion
38          #region IAcceptsMemoryRange members          #region IAcceptsMemoryRange members
39          private int MemoryStart { get { return MemView.MemoryStart; } }          public int MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
40          private uint MemorySize { get { return MemView.MemorySize; } }          public uint MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes
41          #endregion          #endregion
42    
43          #region IAcceptsExternalMemoryAddress          #region IBrowseMemoryRegion
44          public bool AcceptExternalMemoryAddress(int address)          public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
         {  
             if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }  
             MemView.GotoAddress(address);  
             return true;  
         }  
45          #endregion          #endregion
46      }      }
47  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22