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

# Line 200 | Line 200 | namespace RomCheater.EmuMMAPPlugin
200          {
201              this.MapName = name;
202          }
203 <        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"))) { }
204 <        public MemMap(string name, string start, string end, string size)
203 >        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) { }
204 >        public MemMap(string name, string start, string end, ulong size)
205              : this(name)
206          {
207              this.MapStart = start;
208              this.MapEnd = end;
209 <            this.MapSize = size;
209 >            this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
210          }
211          #region IMappedMemRange Members
212          public string MapName { get; private set; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines