/[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

revision 451 by william, Sun Jun 2 21:37:09 2013 UTC revision 456 by william, Mon Jun 3 01:45:40 2013 UTC
# Line 39  namespace RomCheater.Serialization Line 39  namespace RomCheater.Serialization
39   protected const string DEFAULT_FILENAME = "SerializedMemoryResults.tmp";   protected const string DEFAULT_FILENAME = "SerializedMemoryResults.tmp";
40          //private static string DEFAULT_PATH = string.Format(@"{0}\{1}", DEFAULT_FOLDER, DEFAULT_FILENAME);          //private static string DEFAULT_PATH = string.Format(@"{0}\{1}", DEFAULT_FOLDER, DEFAULT_FILENAME);
41          //public SerializationReader() : this(CreateFilename(Guid.Empty)) { CreateReader(Guid.Empty); }          //public SerializationReader() : this(CreateFilename(Guid.Empty)) { CreateReader(Guid.Empty); }
42          public SerializationReader(Guid guid) { CreateFilename(guid); }   public SerializationReader(Guid guid) { ReaderGuid = guid; CreateFilename(guid); }
43          //protected SerializationReader(string filename) { FileName = filename; }          //protected SerializationReader(string filename) { FileName = filename; }
44    
45          protected virtual string TemporaryFolder { get { return string.Empty; } }          protected virtual string TemporaryFolder { get { return string.Empty; } }
# Line 48  namespace RomCheater.Serialization Line 48  namespace RomCheater.Serialization
48    
49          public void CancelRequest() { Cancelled = true; }          public void CancelRequest() { Cancelled = true; }
50    
51            protected Guid ReaderGuid { get; set; }
52    
53          #region ISerializationResultCount members          #region ISerializationResultCount members
54          public int ResultCount { get; protected set; }          public int ResultCount { get; protected set; }
55          #endregion          #endregion
56          //private FileStream fileStream;          //private FileStream fileStream;
57          //protected BinaryReader binReader;          //protected BinaryReader binReader;
58          protected string FileName { get; private set; }          protected string FileName { get; private set; }
59          protected FileStream CreateReader(Guid guid)          protected FileStream CreateReader()
60          {          {
61              return new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Read);              return new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Read);
62          }          }

Legend:
Removed from v.451  
changed lines
  Added in v.456

  ViewVC Help
Powered by ViewVC 1.1.22