/[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 584 by william, Thu Jun 6 08:51:33 2013 UTC revision 587 by william, Thu Jun 6 09:12:35 2013 UTC
# Line 50  namespace RomCheater.Docking Line 50  namespace RomCheater.Docking
50          IAcceptsProcessAndConfig,          IAcceptsProcessAndConfig,
51          ISearchInProgress,          ISearchInProgress,
52          IAcceptsBrowseMemoryRegion,          IAcceptsBrowseMemoryRegion,
53          IAcceptsMemoryRange          IAcceptsMemoryRange,
54            IAcceptPEData
55      {      {
56  #if INCREASE_NUMBER_OF_RESULTS_BEFORE_DISPLAY  #if INCREASE_NUMBER_OF_RESULTS_BEFORE_DISPLAY
57          const int MIN_NUMBER_OF_RESULTS_BEFORE_DISPLAY = 0x2701; // 10,000 results          const int MIN_NUMBER_OF_RESULTS_BEFORE_DISPLAY = 0x2701; // 10,000 results
58  #else  #else
59          const int MIN_NUMBER_OF_RESULTS_BEFORE_DISPLAY = 0x03e8; // 1,000 results          const int MIN_NUMBER_OF_RESULTS_BEFORE_DISPLAY = 0x03e8; // 1,000 results
60  #endif  #endif
61            private IPEDData _PEData;
62            private IPEDData PEData { get { return _PEData; } set { _PEData = value; } }
63          const uint MEM_1B = 0x1;          const uint MEM_1B = 0x1;
64          const uint MEM_1KB = 0x400;          const uint MEM_1KB = 0x400;
65          const uint MEM_1MB = MEM_1KB * MEM_1KB; // 1024 * 1024 = 1MB          const uint MEM_1MB = MEM_1KB * MEM_1KB; // 1024 * 1024 = 1MB
# Line 204  namespace RomCheater.Docking Line 206  namespace RomCheater.Docking
206              get              get
207              {              {
208  #if FORCE_USE_OF_MEMORYSIZECONSTANTS  #if FORCE_USE_OF_MEMORYSIZECONSTANTS
209                  return MemorySizeConstants.MinimumSearchAddress + MemorySizeConstants.MaximumSearchSize;                  if (this.PEData != null)
210                    {
211                        if (this.PEData.Is32bitAssembly())
212                        {
213                            return MemorySizeConstants.MinimumSearchAddress + MemorySizeConstants.MaximumSearchSize_x86;
214                        }
215                        else
216                        {
217                            return MemorySizeConstants.MinimumSearchAddress + MemorySizeConstants.MaximumSearchSize_x64;
218                        }                    
219                    }
220                    return MemorySizeConstants.MinimumSearchAddress + MemorySizeConstants.MaximumSearchSize_x86;                
221  #else  #else
222                  return _MemoryRangeSize;                  return _MemoryRangeSize;
223  #endif  #endif
# Line 2646  namespace RomCheater.Docking Line 2659  namespace RomCheater.Docking
2659    
2660  #endif  #endif
2661          }          }
2662                  
2663    
2664            public void SetPEViewerData(IPEDData peData)
2665            {
2666                this.PEData = peData;
2667            }
2668      }      }
2669  }  }

Legend:
Removed from v.584  
changed lines
  Added in v.587

  ViewVC Help
Powered by ViewVC 1.1.22