/[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	2013/06/17 09:31:52	686
@@ -7,13 +7,21 @@
 using System.Text;
 using System.Windows.Forms;
 using WeifenLuo.WinFormsUI.Docking;
-using RomCheater.PluginFramework.Interfaces;
+
 using RomCheater.PluginFramework.Events;
 using System.Diagnostics;
+using Sojaner.MemoryScanner;
+using RomCheater.Core;
 
 namespace RomCheater.Docking
 {
-    public partial class FloatingMemoryView : DockContent, IAcceptsProcess<Process>, IAcceptsPlugin<IConfigPlugin>, IAcceptsExternalMemoryAddress
+    public partial class FloatingMemoryView : DockContent,
+        IAcceptsPlugin<IConfigPlugin>,
+        IAcceptsProcess<Process>,
+        IAcceptsProcessAndConfig, 
+        IBrowseMemoryRegion,
+        IAcceptsMemoryRange,
+        IAcceptPEData
     {
         public FloatingMemoryView() { 
             InitializeComponent(); 
@@ -31,17 +39,16 @@
         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 ulong MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
+        public ulong 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(ulong MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
+        #endregion
+
+        #region IAcceptPEData members
+        public void SetPEViewerData(IPEDData peData) { MemView.SetPEViewerData(peData); }
         #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22