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

Comparing trunk/RomCheater/Docking/UI/UIMemoryViewer.cs (file contents):
Revision 575 by william, Thu Jun 6 07:39:04 2013 UTC vs.
Revision 576 by william, Thu Jun 6 07:49:01 2013 UTC

--- trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2013/06/06 07:46:38	575
+++ trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2013/06/06 07:49:01	576
@@ -286,7 +286,7 @@ namespace RomCheater.Docking.UI
             return data;
         }
         private void UpdateMemroyView() { this.UpdateMemroyView(this.CURRENT_TOP_ADDR); }
-        private void UpdateMemroyView(uint address)
+        private void UpdateMemroyView(ulong address)
         {
             bool SearchInProgress = false;
             if (this.AcceptedPlugin != null) { SearchInProgress = this.AcceptedPlugin.SearchInProgess; }
@@ -304,7 +304,7 @@ namespace RomCheater.Docking.UI
                     AddressList = "";
                     AsciiData = "";
                     // write the addreses out
-                    for (uint i = address; i < (address + max_ram_view); i += max_address_width) { AddressList = AddressList + string.Format("{0:X8}:\n", i); }
+                    for (ulong i = address; i < (address + max_ram_view); i += max_address_width) { AddressList = AddressList + string.Format("{0:X8}:\n", i); }
                     StringBuilder builder = new StringBuilder();
                     int count = 0;
                     // write ascii text
@@ -314,8 +314,8 @@ namespace RomCheater.Docking.UI
                         {
                             for (uint j = 0; j < max_address_width; j++)
                             {
-                                uint current_real_address = address + j + i;
-                                uint current_addr = i + j;
+                                ulong current_real_address = address + j + i;
+                                ulong current_addr = i + j;
                                 if (current_addr >= MemoryRangeSize) break;
                                 byte ascii_value_raw = data[current_addr];
                                 char ascii_value;
@@ -355,7 +355,7 @@ namespace RomCheater.Docking.UI
         //{
         //    this.WriteCurrentBytes();
         //}
-        private void WriteCurrentBytes(uint start_address, byte[] data)
+        private void WriteCurrentBytes(ulong start_address, byte[] data)
         {
             try
             {
@@ -404,7 +404,7 @@ namespace RomCheater.Docking.UI
             //this.UpdateEnabled = false;
 
             this.UpdateMaxRamView();
-            uint ORIGINAL_ADDR = this.CURRENT_TOP_ADDR;
+            ulong ORIGINAL_ADDR = this.CURRENT_TOP_ADDR;
 
             ////if (e.Type == ScrollEventType.EndScroll) return;
             //uint size = max_ram_view;
@@ -521,7 +521,7 @@ namespace RomCheater.Docking.UI
             //this.UpdateEnabled = false;
 
             this.UpdateMaxRamView();
-            uint ORIGINAL_ADDR = this.CURRENT_TOP_ADDR;
+            ulong ORIGINAL_ADDR = this.CURRENT_TOP_ADDR;
             //uint size = MemorySize;
             if (e.Type == ScrollEventType.EndScroll) return;
 
@@ -585,7 +585,7 @@ namespace RomCheater.Docking.UI
                 ImageBase = this.peData.NTHeader.OptionalHeader64._ImageBase;
                 ulong ib = Convert.ToUInt64(ImageBase);
                 logger.VerboseDebug.WriteLine("UIMemoryViewer::GotoImageBase(0x{0:x16})", ib);
-                txthexGoto.Value = (long)ib;
+                txthexGoto.Value = (ulong)ib;
             }
 
             this.GotoAddress(txthexGoto.ToUInt32());