/[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/05/31 09:31:57	206
+++ trunk/RomCheater/Docking/FloatingMemoryView.cs	2012/06/05 08:52:07	287
@@ -13,7 +13,12 @@
 
 namespace RomCheater.Docking
 {
-    public partial class FloatingMemoryView : DockContent, IProcessConfig, IAcceptsPlugin<IConfigPlugin>, IAcceptsExternalMemoryAddress
+    public partial class FloatingMemoryView : DockContent,
+        IAcceptsPlugin<IConfigPlugin>,
+        IAcceptsProcess<Process>,
+        IAcceptsProcessAndConfig, 
+        IBrowseMemoryRegion,
+        IAcceptsMemoryRange
     {
         public FloatingMemoryView() { 
             InitializeComponent(); 
@@ -24,24 +29,19 @@
         }
         public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
         public FloatingMemoryView(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }
-        #region IProcessConfig Members
+        #region  IAcceptsProcess<Process> Members
         public Process AcceptedProcess { get { return MemView.AcceptedProcess; } set { MemView.AcceptedProcess = value; } }
         #endregion
         #region IAcceptsPlugin<IConfigPlugin> Members
         public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
         #endregion
         #region IAcceptsMemoryRange members
-        private uint 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 IAcceptsExternalMemoryAddress
-        public bool AcceptExternalMemoryAddress(uint address)
-        {
-            if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }
-            MemView.GotoAddress(address);
-            return true;
-        }
+        #region IBrowseMemoryRegion
+        public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
         #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22