/[RomCheater]/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/UI/UIMemoryViewer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2012/06/05 23:20:12	322
+++ trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2012/06/07 16:33:41	323
@@ -15,6 +15,7 @@
 using Sojaner.MemoryScanner.MemoryProviers;
 using System.Runtime.InteropServices;
 using RomCheater.PluginFramework.Events;
+using Sojaner.MemoryScanner;
 
 namespace RomCheater.Docking.UI
 {
@@ -23,7 +24,8 @@
         IAcceptsProcess<Process>,
         IAcceptsProcessAndConfig,
         IAcceptsMemoryRange,
-        IBrowseMemoryRegion
+        IBrowseMemoryRegion,
+        IAcceptPEData
     {
         public UIMemoryViewer()
         {
@@ -110,6 +112,10 @@
         public int MemoryRangeStart { get { return MemorySizeConstants.MinimumAddress; } set { } }
         public uint MemoryRangeSize { get { if (MemoryRangeStart > 0) { return (uint)(MemorySizeConstants.MaximumAddress - MemoryRangeStart); } return MemorySizeConstants.MaximumAddress; } set { } }
         #endregion
+        #region IAcceptPEData members
+        private PEReader.PEData peData { get; set; }
+        public void SetPEViewerData(PEReader.PEData peData) { this.peData = peData; }
+        #endregion
         public void GotoTop() { this.CURRENT_TOP_ADDR = 0; }
         public void GotoBottom() { uint size = (uint)MemoryRangeSize; this.CURRENT_TOP_ADDR = (int)((size - 1) - max_ram_view); }
         public void GotoAddress(int addr) { this.CURRENT_TOP_ADDR = (int)(addr & 0xFFFFFFF0); }

 

  ViewVC Help
Powered by ViewVC 1.1.22