Parent Directory
|
Revision Log
|
Patch
--- trunk/RomCheater/Docking/MemorySearch/SearchRangePatcher.cs 2012/06/03 12:54:18 240 +++ trunk/RomCheater/Docking/MemorySearch/SearchRangePatcher.cs 2012/06/03 13:21:51 243 @@ -8,21 +8,31 @@ using RomCheater.Logging; using System.Diagnostics; using Sojaner.MemoryScanner.MemoryProviers; +using RomCheater.PluginFramework.Interfaces; namespace RomCheater.Docking.MemorySearch { - public partial class SearchRangePatcher : Form + public partial class SearchRangePatcher : Form, + IAcceptsPlugin<IConfigPlugin>, + IAcceptsProcess<Process>, + IAcceptsProcessAndConfig { + #region IAcceptsProcess<Process> Members + public Process AcceptedProcess { get; set; } + #endregion + #region IAcceptsPlugin<IConfigPlugin> Members + public IConfigPlugin AcceptedPlugin { get; set; } + #endregion //PCSX2MemoryProvider provider; - private int pid = -1; - SearchDataTypes DataType; + //SearchDataTypes DataType; //bool Unsigned = false; private List<ResultDataType> PatchList; - public SearchRangePatcher(int pid,List<ResultDataType> patchList) + public SearchRangePatcher(IAcceptsProcessAndConfig pconfig ,List<ResultDataType> patchList) { InitializeComponent(); - this.pid = pid; + this.AcceptedPlugin = pconfig.AcceptedPlugin; + this.AcceptedProcess = pconfig.AcceptedProcess; PatchList = patchList; int CurrentBitSize = 0; // get the larget datatype @@ -53,7 +63,7 @@ } private void btnOK_Click(object sender, EventArgs e) { - GenericMemoryProvider provider = new GenericMemoryProvider(null, Process.GetProcessById(pid)); + GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this); foreach(ResultDataType patch in PatchList) { switch (patch.ValueType)
ViewVC Help | |
Powered by ViewVC 1.1.22 |