ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/FloatingMemoryView.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/FloatingMemoryView.cs (file contents):
Revision 286 by william, Sun Jun 3 22:04:37 2012 UTC vs.
Revision 287 by william, Tue Jun 5 08:52:07 2012 UTC

# Line 16 | Line 16 | namespace RomCheater.Docking
16      public partial class FloatingMemoryView : DockContent,
17          IAcceptsPlugin<IConfigPlugin>,
18          IAcceptsProcess<Process>,
19 <        IAcceptsProcessAndConfig, IBrowseMemoryRegion
19 >        IAcceptsProcessAndConfig,
20 >        IBrowseMemoryRegion,
21 >        IAcceptsMemoryRange
22      {
23          public FloatingMemoryView() {
24              InitializeComponent();
# Line 34 | Line 36 | namespace RomCheater.Docking
36          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
37          #endregion
38          #region IAcceptsMemoryRange members
39 <        private int MemoryStart { get { return MemView.MemoryStart; } }
40 <        private uint MemorySize { get { return MemView.MemorySize; } }
39 >        public int MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
40 >        public uint MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes
41          #endregion
42  
43          #region IBrowseMemoryRegion
44 <        public bool BrowseMemoryRegion(int MemoryRegion)
43 <        {
44 <            if (!((MemoryStart <= MemoryRegion) && (MemoryRegion <= (MemoryStart + MemorySize)))) { return false; }
45 <            MemView.GotoAddress(MemoryRegion);
46 <            return true;
47 <        }
44 >        public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
45          #endregion
46      }
47   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines