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 |
{ |
{ |
24 |
IAcceptsProcess<Process>, |
IAcceptsProcess<Process>, |
25 |
IAcceptsProcessAndConfig, |
IAcceptsProcessAndConfig, |
26 |
IAcceptsMemoryRange, |
IAcceptsMemoryRange, |
27 |
IBrowseMemoryRegion |
IBrowseMemoryRegion, |
28 |
|
IAcceptPEData |
29 |
{ |
{ |
30 |
public UIMemoryViewer() |
public UIMemoryViewer() |
31 |
{ |
{ |
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); } |