ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.Core/PEData.cs
(Generate patch)

Comparing trunk/RomCheater.Core/PEData.cs (file contents):
Revision 796 by william, Mon Apr 7 11:42:48 2014 UTC vs.
Revision 797 by william, Mon Apr 7 12:03:17 2014 UTC

--- trunk/RomCheater.Core/PEData.cs	2014/04/07 11:43:31	796
+++ trunk/RomCheater.Core/PEData.cs	2014/04/07 12:03:17	797
@@ -26,7 +26,7 @@ namespace RomCheater.Core
 
         [Browsable(false)]
         public ulong _VirtualEntryPoint { get; private set; }
-        public string VirtualEntryPoint { get { return string.Format("0x{0:x8}", _VirtualEntryPoint); } }
+        public string VirtualEntryPoint { get { return string.Format("0x{0}", _VirtualEntryPoint.ToString("X")); } }
 
         [Browsable(false)]
         public ulong _VirtualRVA
@@ -43,7 +43,7 @@ namespace RomCheater.Core
                 }
             }
         }
-        public string VirtualRVA { get { return string.Format("0x{0:x8}", _VirtualRVA); } }
+        public string VirtualRVA { get { return string.Format("0x{0}", _VirtualRVA.ToString("X")); } }
 
         [Browsable(false)]
         public ulong _VirtualImageBase { get; private set; }
@@ -51,14 +51,7 @@ namespace RomCheater.Core
         {
             get
             {
-                if (this.Is32bitAssembly())
-                {
-                    return string.Format("0x{0:x8}", _VirtualImageBase);
-                }
-                else
-                {
-                    return string.Format("0x{0:x16}", _VirtualImageBase);
-                }
+                return string.Format("0x{0}", _VirtualImageBase.ToString("X"));
             }
         }