--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs 2012/06/05 15:40:48 317 +++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs 2012/06/05 17:57:37 318 @@ -79,18 +79,18 @@ txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress; #endif #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS - //// code to automatically choose the best starting memory address and size - if (process != null) - { - string filename = process.MainModule.FileName; - //string filename = @"c:\Windows\notepad.exe"; - PEReader peReader = new PEReader(filename); - } - else - { - txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress; - txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress; - } + ////// code to automatically choose the best starting memory address and size + //if (process != null) + //{ + // string filename = process.MainModule.FileName; + // //string filename = @"c:\Windows\notepad.exe"; + // PEReader peReader = new PEReader(filename); + //} + //else + //{ + txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress; + txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress; + //} #endif }