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

Comparing trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs (file contents):
Revision 642 by william, Sat Jun 8 21:58:23 2013 UTC vs.
Revision 643 by william, Sat Jun 8 22:06:24 2013 UTC

--- trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/08 21:58:23	642
+++ trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/08 22:06:24	643
@@ -200,13 +200,13 @@ namespace RomCheater.EmuMMAPPlugin
         {
             this.MapName = name;
         }
-        public MemMap(string name, ulong start, ulong end) : this(name, string.Format("0x{0}", start.ToString("X")), string.Format("0x{0}", end.ToString("X")), string.Format("0x{0}", (end - start).ToString("X"))) { }
-        public MemMap(string name, string start, string end, string size)
+        public MemMap(string name, ulong start, ulong end) : this(name, string.Format("0x{0}", start.ToString("X")), string.Format("0x{0}", end.ToString("X")), end-start) { }
+        public MemMap(string name, string start, string end, ulong size)
             : this(name)
         {
             this.MapStart = start;
             this.MapEnd = end;
-            this.MapSize = size;
+            this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
         }
         #region IMappedMemRange Members
         public string MapName { get; private set; }