/[RomCheater]/trunk/RomCheater/Docking/FloatingPEViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingPEViewer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/FloatingPEViewer.cs	2012/06/19 07:56:36	378
+++ trunk/RomCheater/Docking/FloatingPEViewer.cs	2013/06/06 09:12:35	587
@@ -22,6 +22,7 @@
         IAcceptsPlugin<IConfigPlugin>,
         IAcceptsProcess<Process>,
         IAcceptsProcessAndConfig,
+        IAcceptPEData,
         IAcceptsPEData
     {
         public FloatingPEViewer() { InitializeComponent(); this.AcceptedPlugin = null; this.AcceptedProcess = null; OnPEDataUpdated = null; }
@@ -36,10 +37,10 @@
         public IConfigPlugin AcceptedPlugin { get { return _AcceptedPlugin; } set { _AcceptedPlugin = value; UpdateAcceptedPlugin(value); } }
         #endregion
         #region IAcceptsPEData Members
-        public event BaseEventHandler<PEViewerDataUpdatedEvent> OnPEDataUpdated;
+        public event BaseEventHandler<PEViewerDataUpdatedEventArgs> OnPEDataUpdated;
         #endregion
-        uint MemoryRangeStart { get; set; }
-        uint MemoryRangeSize { get; set; }
+        ulong MemoryRangeStart { get; set; }
+        ulong MemoryRangeSize { get; set; }
 
         private void UpdateAcceptedPlugin(IConfigPlugin config)
         {
@@ -54,7 +55,7 @@
 #if FORCE_USE_OF_MEMORYSIZECONSTANTS
             // force use of MemorySizeConstants
             MemoryRangeStart = MemorySizeConstants.MinimumAddress;
-           MemoryRangeSizee = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
+            MemoryRangeSize = MemoryRangeStart + MemorySizeConstants.MaximumAddressSize;
 #endif
 #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && !FORCE_USE_OF_MEMORYSIZECONSTANTS
             //// code to automatically choose the best starting memory address and size
@@ -67,12 +68,12 @@
                 peprops.PropertySort = PropertySort.NoSort;
                 if (OnPEDataUpdated != null)
                     if (peData != null)
-                        OnPEDataUpdated(new PEViewerDataUpdatedEvent(this, peData));
+                        OnPEDataUpdated(new PEViewerDataUpdatedEventArgs(this, peData));
             }
             else
             {
                 MemoryRangeStart = MemorySizeConstants.MinimumAddress;
-                MemoryRangeSize = (MemorySizeConstants.MinimumAddress > 0) ? (uint)(MemorySizeConstants.MaximumAddress - MemorySizeConstants.MinimumAddress) : MemorySizeConstants.MaximumAddress;
+                MemoryRangeSize = MemorySizeConstants.MaximumAddressSize;
             }
 #endif
 

 

  ViewVC Help
Powered by ViewVC 1.1.22