/[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

--- trunk/RomCheater/Docking/FloatingMemoryView.cs	2012/06/05 02:19:13	286
+++ trunk/RomCheater/Docking/FloatingMemoryView.cs	2012/06/05 08:52:07	287
@@ -16,7 +16,9 @@
     public partial class FloatingMemoryView : DockContent,
         IAcceptsPlugin<IConfigPlugin>,
         IAcceptsProcess<Process>,
-        IAcceptsProcessAndConfig, IBrowseMemoryRegion
+        IAcceptsProcessAndConfig, 
+        IBrowseMemoryRegion,
+        IAcceptsMemoryRange
     {
         public FloatingMemoryView() { 
             InitializeComponent(); 
@@ -34,17 +36,12 @@
         public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
         #endregion
         #region IAcceptsMemoryRange members
-        private int MemoryStart { get { return MemView.MemoryStart; } }
-        private uint MemorySize { get { return MemView.MemorySize; } }
+        public int MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
+        public uint MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes
         #endregion
 
         #region IBrowseMemoryRegion
-        public bool BrowseMemoryRegion(int MemoryRegion)
-        {
-            if (!((MemoryStart <= MemoryRegion) && (MemoryRegion <= (MemoryStart + MemorySize)))) { return false; }
-            MemView.GotoAddress(MemoryRegion);
-            return true;
-        }
+        public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
         #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22