/[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

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2012/06/07 16:33:41	323
+++ 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 @@
 #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 @@
             //}
             //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 @@
             get
             {
 #if FORCE_USE_OF_MEMORYSIZECONSTANTS
-                return MemorySizeConstants.MinimumAddress;
+                return MemorySizeConstants.MinimumSearchAddress;
 #else
                 return _MemoryRangeStart;
 #endif
@@ -125,7 +125,7 @@
             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

 

  ViewVC Help
Powered by ViewVC 1.1.22