/[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 245 by william, Sun Jun 3 14:50:09 2012 UTC revision 246 by william, Sun Jun 3 15:15:51 2012 UTC
# Line 1  Line 1 
1  ´╗┐using System;  ´╗┐#define DISABLE_GETFIRSTNONZEROBYTE_ONUPDATE_ACCEPTEDPROCESS // when defined will not call GetFirstNonZeroByte() when AcceptedProcess is updated and is not null
2    #define DISABLE_GETFIRSTNONZERO_BYTE // when defined will make GetFirstNonZeroByte() an empty void method
3    using System;
4  using System.Collections.Generic;  using System.Collections.Generic;
5  using System.ComponentModel;  using System.ComponentModel;
6  using System.Drawing;  using System.Drawing;
# Line 51  namespace RomCheater.Docking.UI Line 53  namespace RomCheater.Docking.UI
53    
54          private void GetFirstNonZeroByte()          private void GetFirstNonZeroByte()
55          {          {
56    #if !DISABLE_GETFIRSTNONZERO_BYTE
57              if (!DesignMode)              if (!DesignMode)
58              {              {
59                  GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this);                  GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this);
# Line 60  namespace RomCheater.Docking.UI Line 63  namespace RomCheater.Docking.UI
63                  provider.CloseProvider();                  provider.CloseProvider();
64                  GotoAddress(addr);                  GotoAddress(addr);
65              }              }
66    #endif
67          }          }
68    
69          #region  IAcceptsProcess<Process> Members          #region  IAcceptsProcess<Process> Members
# Line 72  namespace RomCheater.Docking.UI Line 76  namespace RomCheater.Docking.UI
76                  _AcceptedProcess = value;                  _AcceptedProcess = value;
77                  update_timer.Enabled = (value != null);                  update_timer.Enabled = (value != null);
78                  UpdateEnabled = update_timer.Enabled;                  UpdateEnabled = update_timer.Enabled;
79    #if !DISABLE_GETFIRSTNONZEROBYTE_ONUPDATE_ACCEPTEDPROCESS
80                  if (value != null)                  if (value != null)
81                      GetFirstNonZeroByte();                      GetFirstNonZeroByte();
82    #endif
83              }              }
84          }          }
85          #endregion          #endregion

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

  ViewVC Help
Powered by ViewVC 1.1.22