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 348 by william, Thu Jun 7 16:33:41 2012 UTC vs.
Revision 349 by william, Fri Jun 8 04:39:37 2012 UTC

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2012/06/08 04:23:30	348
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2012/06/08 04:39:37	349
@@ -1,4 +1,4 @@
-#define USE_AUTOMATIC_MEMORY_SEARCH_RANGE // when defined will automatically choose the best starting address and size for memory search otherwise it will use the constants defined in MemorySizeConstants
+//#define USE_AUTOMATIC_MEMORY_SEARCH_RANGE // when defined will automatically choose the best starting address and size for memory search otherwise it will use the constants defined in MemorySizeConstants
 #if !USE_AUTOMATIC_MEMORY_SEARCH_RANGE
 #define FORCE_USE_OF_MEMORYSIZECONSTANTS // when defined wil force the use of the constants defined in MemorySizeConstants for memory search range
 #endif
@@ -75,8 +75,8 @@ namespace RomCheater.Docking
 #endif
 #if FORCE_USE_OF_MEMORYSIZECONSTANTS
             // force use of MemorySizeConstants
-            txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress;
-            txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
+            txtMemoryRangeStart.Value = MemorySizeConstants.MinimumSearchAddress;
+            txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumSearchAddress > 0) ? (uint)(MemorySizeConstants.MaximumSearchAddress - MemorySizeConstants.MinimumSearchAddress) : MemorySizeConstants.MaximumSearchAddress;
 #endif
 #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS
             ////// code to automatically choose the best starting memory address and size
@@ -88,8 +88,8 @@ namespace RomCheater.Docking
             //}
             //else
             //{
-            txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress;
-            txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
+            txtMemoryRangeStart.Value = MemorySizeConstants.MinimumSearchAddress;
+            txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumSearchAddress > 0) ? (uint)(MemorySizeConstants.MaximumSearchAddress - MemorySizeConstants.MinimumSearchAddress) : MemorySizeConstants.MaximumSearchAddress;
             //}
 #endif
 
@@ -108,7 +108,7 @@ namespace RomCheater.Docking
             get
             {
 #if FORCE_USE_OF_MEMORYSIZECONSTANTS
-                return MemorySizeConstants.MinimumAddress;
+                return MemorySizeConstants.MinimumSearchAddress;
 #else
                 return _MemoryRangeStart;
 #endif
@@ -125,7 +125,7 @@ namespace RomCheater.Docking
             get
             {
 #if FORCE_USE_OF_MEMORYSIZECONSTANTS
-                return (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
+                return (MemorySizeConstants.MinimumSearchAddress > 0) ? (uint)(MemorySizeConstants.MaximumSearchAddress - MemorySizeConstants.MinimumSearchAddress) : MemorySizeConstants.MaximumSearchAddress;
 #else
                 return _MemoryRangeSize;
 #endif