/[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:19:16	205
+++ trunk/RomCheater/Docking/FloatingMemoryView.cs	2012/05/31 09:31:57	206
@@ -13,7 +13,7 @@
 
 namespace RomCheater.Docking
 {
-    public partial class FloatingMemoryView : DockContent, IProcessConfig, IAcceptsPlugin<IConfigPlugin>
+    public partial class FloatingMemoryView : DockContent, IProcessConfig, IAcceptsPlugin<IConfigPlugin>, IAcceptsExternalMemoryAddress
     {
         public FloatingMemoryView() { 
             InitializeComponent(); 
@@ -30,9 +30,18 @@
         #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; } set { MemView.MemoryStart = value; } }
-        //private uint MemorySize { get { return MemView.MemorySize; } set { MemView.MemorySize = value; } }
-        //#endregion
+        #region IAcceptsMemoryRange members
+        private uint MemoryStart { get { return MemView.MemoryStart; } }
+        private uint MemorySize { get { return MemView.MemorySize; } }
+        #endregion
+
+        #region IAcceptsExternalMemoryAddress
+        public bool AcceptExternalMemoryAddress(uint address)
+        {
+            if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }
+            MemView.GotoAddress(address);
+            return true;
+        }
+        #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22