/[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

revision 322 by william, Tue Jun 5 08:52:07 2012 UTC revision 323 by william, Thu Jun 7 16:33:41 2012 UTC
# Line 15  using System.Diagnostics; Line 15  using System.Diagnostics;
15  using Sojaner.MemoryScanner.MemoryProviers;  using Sojaner.MemoryScanner.MemoryProviers;
16  using System.Runtime.InteropServices;  using System.Runtime.InteropServices;
17  using RomCheater.PluginFramework.Events;  using RomCheater.PluginFramework.Events;
18    using Sojaner.MemoryScanner;
19    
20  namespace RomCheater.Docking.UI  namespace RomCheater.Docking.UI
21  {  {
# Line 23  namespace RomCheater.Docking.UI Line 24  namespace RomCheater.Docking.UI
24          IAcceptsProcess<Process>,          IAcceptsProcess<Process>,
25          IAcceptsProcessAndConfig,          IAcceptsProcessAndConfig,
26          IAcceptsMemoryRange,          IAcceptsMemoryRange,
27          IBrowseMemoryRegion          IBrowseMemoryRegion,
28            IAcceptPEData
29      {      {
30          public UIMemoryViewer()          public UIMemoryViewer()
31          {          {
# Line 110  namespace RomCheater.Docking.UI Line 112  namespace RomCheater.Docking.UI
112          public int MemoryRangeStart { get { return MemorySizeConstants.MinimumAddress; } set { } }          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 { } }          public uint MemoryRangeSize { get { if (MemoryRangeStart > 0) { return (uint)(MemorySizeConstants.MaximumAddress - MemoryRangeStart); } return MemorySizeConstants.MaximumAddress; } set { } }
114          #endregion          #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; }          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); }          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); }          public void GotoAddress(int addr) { this.CURRENT_TOP_ADDR = (int)(addr & 0xFFFFFFF0); }

Legend:
Removed from v.322  
changed lines
  Added in v.323

  ViewVC Help
Powered by ViewVC 1.1.22