/[RomCheater]/trunk/RomCheater/Docking/MemorySearch/PatchAdder.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/MemorySearch/PatchAdder.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 229 by william, Sat Jun 2 18:31:40 2012 UTC revision 245 by william, Sun Jun 3 14:50:09 2012 UTC
# Line 5  using System.Data; Line 5  using System.Data;
5  using System.Drawing;  using System.Drawing;
6  using System.Text;  using System.Text;
7  using System.Windows.Forms;  using System.Windows.Forms;
8    using RomCheater.PluginFramework.Interfaces;
9    using System.Diagnostics;
10    
11  namespace RomCheater.Docking.MemorySearch  namespace RomCheater.Docking.MemorySearch
12  {  {
13      public partial class PatchAdder : Form      public partial class PatchAdder : Form,
14                IAcceptsPlugin<IConfigPlugin>,
15            IAcceptsProcess<Process>,
16            IAcceptsProcessAndConfig
17      {      {
18            #region  IAcceptsProcess<Process> Members
19            public Process AcceptedProcess { get; set; }
20            #endregion
21            #region IAcceptsPlugin<IConfigPlugin> Members
22            public IConfigPlugin AcceptedPlugin { get; set; }
23            #endregion
24          //PCSX2MemoryProvider provider;          //PCSX2MemoryProvider provider;
25          SearchDataTypes DataType;          SearchDataTypes DataType;
26          bool Unsigned = false;          bool Unsigned = false;
27          int _pid = -1;          public PatchAdder(IAcceptsProcessAndConfig pconfig)
         public PatchAdder(int pid)  
28          {          {
29              InitializeComponent();              InitializeComponent();
30              _pid = pid;              this.AcceptedPlugin = pconfig.AcceptedPlugin;
31                this.AcceptedProcess = pconfig.AcceptedProcess;
32              //provider = new PCSX2MemoryProvider(_pid, log_control);              //provider = new PCSX2MemoryProvider(_pid, log_control);
33              Unsigned = true;              Unsigned = true;
34              DataType = SearchDataTypes._8bits;              DataType = SearchDataTypes._8bits;
# Line 52  namespace RomCheater.Docking.MemorySearc Line 63  namespace RomCheater.Docking.MemorySearc
63              //    return;              //    return;
64              //}              //}
65    
66              ResultItemState _result_state = new ResultItemState(string.Format("0x{0:x8}",txtAddress.ToUInt32()), DataType, Unsigned, _pid);              ResultItemState _result_state = new ResultItemState(string.Format("0x{0:x8}", txtAddress.ToUInt32()), DataType, Unsigned, (IAcceptsProcessAndConfig)this);
67              ResultDataType _result = _result_state;              ResultDataType _result = _result_state;
68              this.AddedPatchValue = _result;              this.AddedPatchValue = _result;
69              this.Close();              this.Close();

Legend:
Removed from v.229  
changed lines
  Added in v.245

  ViewVC Help
Powered by ViewVC 1.1.22