ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/UI/UIMemoryViewer.cs (file contents):
Revision 245 by william, Sun Jun 3 14:50:09 2012 UTC vs.
Revision 246 by william, Sun Jun 3 15:15:51 2012 UTC

# Line 1 | Line 1
1 < using System;
1 > #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;
5   using System.ComponentModel;
6   using System.Drawing;
# Line 51 | Line 53 | namespace RomCheater.Docking.UI
53  
54          private void GetFirstNonZeroByte()
55          {
56 + #if !DISABLE_GETFIRSTNONZERO_BYTE
57              if (!DesignMode)
58              {
59                  GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this);
# Line 60 | Line 63 | namespace RomCheater.Docking.UI
63                  provider.CloseProvider();
64                  GotoAddress(addr);
65              }
66 + #endif
67          }
68  
69          #region  IAcceptsProcess<Process> Members
# Line 72 | Line 76 | namespace RomCheater.Docking.UI
76                  _AcceptedProcess = value;
77                  update_timer.Enabled = (value != null);
78                  UpdateEnabled = update_timer.Enabled;
79 + #if !DISABLE_GETFIRSTNONZEROBYTE_ONUPDATE_ACCEPTEDPROCESS
80                  if (value != null)
81                      GetFirstNonZeroByte();
82 + #endif
83              }
84          }
85          #endregion

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines