/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySearcher.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySearcher.cs

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

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/04 19:48:58	501
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/04 20:15:03	504
@@ -1741,21 +1741,9 @@
                                     if (SearchWorkerThread.CancellationPending) { e.Canceled = true; return; }
                                 }
                             }
-                            switch (sdt)
-                            {
-                                case SearchDataTypes._8bits:
-                                    CurrentIndex += sizeof(byte);
-                                    break;
-                                case SearchDataTypes._16bits:
-                                    CurrentIndex += sizeof(ushort);
-                                    break;
-                                case SearchDataTypes._32bits:
-                                    CurrentIndex += sizeof(uint);
-                                    break;
-                                case SearchDataTypes._64bits:
-                                    CurrentIndex += sizeof(ulong);
-                                    break;
-                            }                            
+                            uint size = 0;
+                            BitTools.SizeOf(sdt, out size);
+                            CurrentIndex += size;                          
                         }
                      
                     }
@@ -1818,7 +1806,7 @@
                        
 
                         // need to get the address list
-                        using (SearchResultReader reader = new SearchResultReader(SearchGuid, true)) // delete the file on dispose
+                        using (SearchResultReader reader = new SearchResultReader(SearchGuid, false)) // delete the file on dispose
                         {
                             #region action_onbytesread :: custom in-line delegate for processing read bytes
                             // custom in-line delegate for processing read bytes
@@ -1915,6 +1903,9 @@
                                                     }
                                                     break;
                                             }
+                                            uint size = 0;
+                                            BitTools.SizeOf(obre_sdt, out size);
+                                            obre_CurrentIndex += size;
                                         }
                                     }
                                 }

 

  ViewVC Help
Powered by ViewVC 1.1.22