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

Comparing trunk/RomCheater/Docking/FloatingMemorySearcher.cs (file contents):
Revision 317 by william, Tue Jun 5 13:42:37 2012 UTC vs.
Revision 318 by william, Tue Jun 5 17:57:37 2012 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines