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

revision 323 by william, Thu Jun 7 16:33:41 2012 UTC revision 349 by william, Fri Jun 8 04:39:37 2012 UTC
# Line 1  Line 1 
1  #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
2  #if !USE_AUTOMATIC_MEMORY_SEARCH_RANGE  #if !USE_AUTOMATIC_MEMORY_SEARCH_RANGE
3  #define FORCE_USE_OF_MEMORYSIZECONSTANTS // when defined wil force the use of the constants defined in MemorySizeConstants for memory search range  #define FORCE_USE_OF_MEMORYSIZECONSTANTS // when defined wil force the use of the constants defined in MemorySizeConstants for memory search range
4  #endif  #endif
# Line 75  namespace RomCheater.Docking Line 75  namespace RomCheater.Docking
75  #endif  #endif
76  #if FORCE_USE_OF_MEMORYSIZECONSTANTS  #if FORCE_USE_OF_MEMORYSIZECONSTANTS
77              // force use of MemorySizeConstants              // force use of MemorySizeConstants
78              txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress;              txtMemoryRangeStart.Value = MemorySizeConstants.MinimumSearchAddress;
79              txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;              txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumSearchAddress > 0) ? (uint)(MemorySizeConstants.MaximumSearchAddress - MemorySizeConstants.MinimumSearchAddress) : MemorySizeConstants.MaximumSearchAddress;
80  #endif  #endif
81  #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS  #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS
82              ////// code to automatically choose the best starting memory address and size              ////// code to automatically choose the best starting memory address and size
# Line 88  namespace RomCheater.Docking Line 88  namespace RomCheater.Docking
88              //}              //}
89              //else              //else
90              //{              //{
91              txtMemoryRangeStart.Value = MemorySizeConstants.MinimumAddress;              txtMemoryRangeStart.Value = MemorySizeConstants.MinimumSearchAddress;
92              txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;              txtMemoryRangeSize.Value = (MemorySizeConstants.MinimumSearchAddress > 0) ? (uint)(MemorySizeConstants.MaximumSearchAddress - MemorySizeConstants.MinimumSearchAddress) : MemorySizeConstants.MaximumSearchAddress;
93              //}              //}
94  #endif  #endif
95    
# Line 108  namespace RomCheater.Docking Line 108  namespace RomCheater.Docking
108              get              get
109              {              {
110  #if FORCE_USE_OF_MEMORYSIZECONSTANTS  #if FORCE_USE_OF_MEMORYSIZECONSTANTS
111                  return MemorySizeConstants.MinimumAddress;                  return MemorySizeConstants.MinimumSearchAddress;
112  #else  #else
113                  return _MemoryRangeStart;                  return _MemoryRangeStart;
114  #endif  #endif
# Line 125  namespace RomCheater.Docking Line 125  namespace RomCheater.Docking
125              get              get
126              {              {
127  #if FORCE_USE_OF_MEMORYSIZECONSTANTS  #if FORCE_USE_OF_MEMORYSIZECONSTANTS
128                  return (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;                  return (MemorySizeConstants.MinimumSearchAddress > 0) ? (uint)(MemorySizeConstants.MaximumSearchAddress - MemorySizeConstants.MinimumSearchAddress) : MemorySizeConstants.MaximumSearchAddress;
129  #else  #else
130                  return _MemoryRangeSize;                  return _MemoryRangeSize;
131  #endif  #endif

Legend:
Removed from v.323  
changed lines
  Added in v.349

  ViewVC Help
Powered by ViewVC 1.1.22