/[RomCheater]/trunk/RomCheater/Serialization/SerializationReader.cs
ViewVC logotype

Diff of /trunk/RomCheater/Serialization/SerializationReader.cs

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

--- trunk/RomCheater/Serialization/SerializationReader.cs	2013/06/03 00:37:29	455
+++ trunk/RomCheater/Serialization/SerializationReader.cs	2013/06/03 01:45:40	456
@@ -39,7 +39,7 @@
  protected const string DEFAULT_FILENAME = "SerializedMemoryResults.tmp";
         //private static string DEFAULT_PATH = string.Format(@"{0}\{1}", DEFAULT_FOLDER, DEFAULT_FILENAME);
         //public SerializationReader() : this(CreateFilename(Guid.Empty)) { CreateReader(Guid.Empty); }
-        public SerializationReader(Guid guid) { CreateFilename(guid); } 
+ public SerializationReader(Guid guid) { ReaderGuid = guid; CreateFilename(guid); } 
         //protected SerializationReader(string filename) { FileName = filename; }
 
         protected virtual string TemporaryFolder { get { return string.Empty; } }
@@ -48,13 +48,15 @@
 
         public void CancelRequest() { Cancelled = true; }
 
+        protected Guid ReaderGuid { get; set; }
+
         #region ISerializationResultCount members
         public int ResultCount { get; protected set; }
         #endregion
         //private FileStream fileStream;
         //protected BinaryReader binReader;
         protected string FileName { get; private set; }
-        protected FileStream CreateReader(Guid guid)
+        protected FileStream CreateReader()
         {
             return new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Read);
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22