/[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/03 12:48:09	237
+++ trunk/RomCheater/Docking/FloatingMemoryView.cs	2012/06/03 22:04:37	276
@@ -13,7 +13,10 @@
 
 namespace RomCheater.Docking
 {
-    public partial class FloatingMemoryView : DockContent, IAcceptsProcess<Process>, IAcceptsPlugin<IConfigPlugin>, IAcceptsExternalMemoryAddress
+    public partial class FloatingMemoryView : DockContent,
+        IAcceptsPlugin<IConfigPlugin>,
+        IAcceptsProcess<Process>,
+        IAcceptsProcessAndConfig, IBrowseMemoryRegion
     {
         public FloatingMemoryView() { 
             InitializeComponent(); 
@@ -31,15 +34,15 @@
         public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
         #endregion
         #region IAcceptsMemoryRange members
-        private uint MemoryStart { get { return MemView.MemoryStart; } }
+        private int MemoryStart { get { return MemView.MemoryStart; } }
         private uint MemorySize { get { return MemView.MemorySize; } }
         #endregion
 
-        #region IAcceptsExternalMemoryAddress
-        public bool AcceptExternalMemoryAddress(uint address)
+        #region IBrowseMemoryRegion
+        public bool BrowseMemoryRegion(int MemoryRegion)
         {
-            if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }
-            MemView.GotoAddress(address);
+            if (!((MemoryStart <= MemoryRegion) && (MemoryRegion <= (MemoryStart + MemorySize)))) { return false; }
+            MemView.GotoAddress(MemoryRegion);
             return true;
         }
         #endregion

 

  ViewVC Help
Powered by ViewVC 1.1.22