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

revision 256 by william, Sun Jun 3 16:50:16 2012 UTC revision 323 by william, Thu Jun 7 16:33:41 2012 UTC
# Line 10  using WeifenLuo.WinFormsUI.Docking; Line 10  using WeifenLuo.WinFormsUI.Docking;
10  using RomCheater.PluginFramework.Interfaces;  using RomCheater.PluginFramework.Interfaces;
11  using RomCheater.PluginFramework.Events;  using RomCheater.PluginFramework.Events;
12  using System.Diagnostics;  using System.Diagnostics;
13    using Sojaner.MemoryScanner;
14    
15  namespace RomCheater.Docking  namespace RomCheater.Docking
16  {  {
17      public partial class FloatingMemoryView : DockContent,      public partial class FloatingMemoryView : DockContent,
18          IAcceptsPlugin<IConfigPlugin>,          IAcceptsPlugin<IConfigPlugin>,
19          IAcceptsProcess<Process>,          IAcceptsProcess<Process>,
20          IAcceptsProcessAndConfig, IAcceptsExternalMemoryAddress          IAcceptsProcessAndConfig,
21            IBrowseMemoryRegion,
22            IAcceptsMemoryRange,
23            IAcceptPEData
24      {      {
25          public FloatingMemoryView() {          public FloatingMemoryView() {
26              InitializeComponent();              InitializeComponent();
# Line 34  namespace RomCheater.Docking Line 38  namespace RomCheater.Docking
38          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }          public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
39          #endregion          #endregion
40          #region IAcceptsMemoryRange members          #region IAcceptsMemoryRange members
41          private int MemoryStart { get { return MemView.MemoryStart; } }          public int MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
42          private uint MemorySize { get { return MemView.MemorySize; } }          public uint MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes
43          #endregion          #endregion
44    
45          #region IAcceptsExternalMemoryAddress          #region IBrowseMemoryRegion
46          public bool AcceptExternalMemoryAddress(int address)          public bool BrowseMemoryRegion(int MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
47          {          #endregion
48              if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; }  
49              MemView.GotoAddress(address);          #region IAcceptPEData members
50              return true;          public void SetPEViewerData(PEReader.PEData peData) { MemView.SetPEViewerData(peData); }
         }  
51          #endregion          #endregion
52      }      }
53  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22