ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/UI/UIMemoryViewer.cs (file contents):
Revision 322 by william, Tue Jun 5 08:52:07 2012 UTC vs.
Revision 323 by william, Thu Jun 7 16:33:41 2012 UTC

# Line 15 | Line 15 | using System.Diagnostics;
15   using Sojaner.MemoryScanner.MemoryProviers;
16   using System.Runtime.InteropServices;
17   using RomCheater.PluginFramework.Events;
18 + using Sojaner.MemoryScanner;
19  
20   namespace RomCheater.Docking.UI
21   {
# Line 23 | Line 24 | namespace RomCheater.Docking.UI
24          IAcceptsProcess<Process>,
25          IAcceptsProcessAndConfig,
26          IAcceptsMemoryRange,
27 <        IBrowseMemoryRegion
27 >        IBrowseMemoryRegion,
28 >        IAcceptPEData
29      {
30          public UIMemoryViewer()
31          {
# Line 110 | Line 112 | namespace RomCheater.Docking.UI
112          public int MemoryRangeStart { get { return MemorySizeConstants.MinimumAddress; } set { } }
113          public uint MemoryRangeSize { get { if (MemoryRangeStart > 0) { return (uint)(MemorySizeConstants.MaximumAddress - MemoryRangeStart); } return MemorySizeConstants.MaximumAddress; } set { } }
114          #endregion
115 +        #region IAcceptPEData members
116 +        private PEReader.PEData peData { get; set; }
117 +        public void SetPEViewerData(PEReader.PEData peData) { this.peData = peData; }
118 +        #endregion
119          public void GotoTop() { this.CURRENT_TOP_ADDR = 0; }
120          public void GotoBottom() { uint size = (uint)MemoryRangeSize; this.CURRENT_TOP_ADDR = (int)((size - 1) - max_ram_view); }
121          public void GotoAddress(int addr) { this.CURRENT_TOP_ADDR = (int)(addr & 0xFFFFFFF0); }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines