/[RomCheater]/trunk/RomCheater/Docking/MemorySearch/SearchType.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/MemorySearch/SearchType.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/MemorySearch/SearchType.cs	2013/06/04 20:31:03	506
+++ trunk/RomCheater/Docking/MemorySearch/SearchType.cs	2013/06/04 20:33:40	507
@@ -141,8 +141,17 @@
             //StringBuilder builder = new StringBuilder();
 
             logger.Info.WriteLine("Current Search Options:");
+            int size = 0;
+            BitTools.SizeOf(this.DataType, out size);
             // write Data type
-            logger.Info.WriteLine("Data Type: {0}", Enum.GetName(typeof(SearchDataTypes), this.DataType));
+            if (size == 1)
+            {
+                logger.Info.WriteLine("Data Type: {0} [{1} byte]", Enum.GetName(typeof(SearchDataTypes), this.DataType), size);
+            }
+            else
+                logger.Info.WriteLine("Data Type: {0} [{1} bytes]", Enum.GetName(typeof(SearchDataTypes), this.DataType), size);
+            {
+            }
             // write Signed/Unsigned
             if (this.IsUnsignedDataType) { logger.Info.WriteLine("Signed/Unsigned: {0}", "Unsigned"); }
             else { logger.Info.WriteLine("Signed/Unsigned: {0}", "Signed"); }

 

  ViewVC Help
Powered by ViewVC 1.1.22