/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySearcher.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySearcher.cs

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

revision 305 by william, Tue Jun 5 13:42:37 2012 UTC revision 318 by william, Tue Jun 5 17:57:37 2012 UTC
# Line 79  namespace RomCheater.Docking Line 79  namespace RomCheater.Docking
79              txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;              txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
80  #endif  #endif
81  #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS  #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS
82              //// code to automatically choose the best starting memory address and size              ////// code to automatically choose the best starting memory address and size
83              if (process != null)              //if (process != null)
84              {              //{
85                  string filename = process.MainModule.FileName;              //    string filename = process.MainModule.FileName;
86                  //string filename = @"c:\Windows\notepad.exe";              //    //string filename = @"c:\Windows\notepad.exe";
87                  PEReader peReader = new PEReader(filename);              //    PEReader peReader = new PEReader(filename);
88              }              //}
89              else              //else
90              {              //{
91                  txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress;              txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress;
92                  txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;              txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
93              }              //}
94  #endif  #endif
95    
96          }          }

Legend:
Removed from v.305  
changed lines
  Added in v.318

  ViewVC Help
Powered by ViewVC 1.1.22