/[RomCheater]/trunk/RomCheater.Core/PEData.cs
ViewVC logotype

Diff of /trunk/RomCheater.Core/PEData.cs

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

revision 794 by william, Mon Jun 17 09:31:52 2013 UTC revision 795 by william, Mon Apr 7 11:42:48 2014 UTC
# Line 25  namespace RomCheater.Core Line 25  namespace RomCheater.Core
25    
26    
27          [Browsable(false)]          [Browsable(false)]
28          public uint _VirtualEntryPoint { get; private set; }          public ulong _VirtualEntryPoint { get; private set; }
29          public string VirtualEntryPoint { get { return string.Format("0x{0:x8}", _VirtualEntryPoint); } }          public string VirtualEntryPoint { get { return string.Format("0x{0:x8}", _VirtualEntryPoint); } }
30    
31          [Browsable(false)]          [Browsable(false)]
32          public uint _VirtualRVA          public ulong _VirtualRVA
33          {          {
34              get              get
35              {              {
# Line 75  namespace RomCheater.Core Line 75  namespace RomCheater.Core
75              if (iap == null) { throw new ArgumentNullException("iap", "The selected process cannot be null"); }              if (iap == null) { throw new ArgumentNullException("iap", "The selected process cannot be null"); }
76              Process p = iap.AcceptedProcess;              Process p = iap.AcceptedProcess;
77              reader = new PeHeaderReader(p);              reader = new PeHeaderReader(p);
78              
             this._VirtualEntryPoint = (uint)p.MainModule.EntryPointAddress;  
79              if (this.Is32bitAssembly())              if (this.Is32bitAssembly())
80              {              {
81                  this._VirtualImageBase = (uint)p.MainModule.BaseAddress;                  this._VirtualEntryPoint = (uint)p.MainModule.EntryPointAddress;
82                    this._VirtualImageBase = (uint)p.MainModule.BaseAddress;                
83              }              }
84              else              else
85              {              {
86                    this._VirtualEntryPoint = (ulong)p.MainModule.EntryPointAddress;
87                  this._VirtualImageBase = (ulong)p.MainModule.BaseAddress;                  this._VirtualImageBase = (ulong)p.MainModule.BaseAddress;
88              }              }
89    

Legend:
Removed from v.794  
changed lines
  Added in v.795

  ViewVC Help
Powered by ViewVC 1.1.22