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

Comparing trunk/RomCheater/Docking/UI/ByteEditor.cs (file contents):
Revision 575 by william, Tue Jun 19 07:56:36 2012 UTC vs.
Revision 576 by william, Thu Jun 6 07:49:01 2013 UTC

--- trunk/RomCheater/Docking/UI/ByteEditor.cs	2013/06/06 07:46:38	575
+++ trunk/RomCheater/Docking/UI/ByteEditor.cs	2013/06/06 07:49:01	576
@@ -14,7 +14,7 @@ namespace RomCheater.Docking.UI
     {
         private const int max_address_width = 16;
         private byte[] byte_data = new byte[] { };
-        private uint base_address = 0;
+        private ulong base_address = 0;
         public ByteEditor()
         {
             InitializeComponent();
@@ -29,12 +29,13 @@ namespace RomCheater.Docking.UI
             }
         }
         public ByteEditor(byte[] data, uint BaseAddress) : this() { byte_data = data; base_address = BaseAddress; }
+        public ByteEditor(byte[] data, ulong BaseAddress) : this() { byte_data = data; base_address = BaseAddress; }
 
         private void ByteEditor_Load(object sender, EventArgs e)
         {
             uint max_ram_view = (uint)byte_data.Length;
             //for (uint i = 0; i < byte_data.Length; i += max_address_width) { max_ram_view += max_address_width; }
-            for (uint i = base_address; i < (base_address + max_ram_view); i += max_address_width)
+            for (ulong i = base_address; i < (base_address + max_ram_view); i += max_address_width)
             {
                 txtAddresses.Text = txtAddresses.Text + string.Format("{0:X8}:\n", i);
             }