/[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 13:21:51	243
+++ trunk/RomCheater/Docking/FloatingMemoryView.cs	2012/06/07 16:33:41	323
@@ -10,13 +10,17 @@
 using RomCheater.PluginFramework.Interfaces;
 using RomCheater.PluginFramework.Events;
 using System.Diagnostics;
+using Sojaner.MemoryScanner;
 
 namespace RomCheater.Docking
 {
     public partial class FloatingMemoryView : DockContent,
         IAcceptsPlugin<IConfigPlugin>,
         IAcceptsProcess<Process>,
-        IAcceptsProcessAndConfig, IAcceptsExternalMemoryAddress
+        IAcceptsProcessAndConfig, 
+        IBrowseMemoryRegion,
+        IAcceptsMemoryRange,
+        IAcceptPEData
     {
         public FloatingMemoryView() { 
             InitializeComponent(); 
@@ -34,17 +38,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 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
+
+        #region IAcceptPEData members
+        public void SetPEViewerData(PEReader.PEData peData) { MemView.SetPEViewerData(peData); }
         #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22