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

--- 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 @@ namespace RomCheater.Docking
             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
 
         }