Esempio n. 1
0
        public BinaryStateSaver(string path, bool notamovie = true)         // notamovie is hack, really should have separate something
        {
            _zip = new FrameworkZipWriter(path, notamovie ? Global.Config.SaveStateCompressionLevelNormal : Global.Config.MovieCompressionLevel);

            if (notamovie)
            {
                PutLump(BinaryStateLump.Versiontag, WriteVersion);
                PutLump(BinaryStateLump.BizVersion, WriteEmuVersion);
            }
        }
Esempio n. 2
0
        public BinaryStateSaver(string path, bool notamovie = true)         // notamovie is hack, really should have separate something
        {
            _zip = new IonicZipWriter(path, notamovie ? Global.Config.SaveStateCompressionLevelNormal : Global.Config.MovieCompressionLevel);
            ////_zip = new SharpZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
            ////_zip = new SevenZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);

            if (notamovie)
            {
                PutLump(BinaryStateLump.Versiontag, WriteVersion);
            }
        }
Esempio n. 3
0
        public BinaryStateSaver(string path, bool stateVersionTag = true)         // stateVersionTag is a hack for reusing this for movie code
        {
            _zip = new IonicZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
            //_zip = new SharpZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
            //_zip = new SevenZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);

            if (stateVersionTag)
            {
                PutLump(BinaryStateLump.Versiontag, WriteVersion);
            }
        }
Esempio n. 4
0
		public BinaryStateSaver(string path, bool notamovie = true) // notamovie is hack, really should have separate something
		{
			_zip = new IonicZipWriter(path, notamovie ? Global.Config.SaveStateCompressionLevelNormal
				: Global.Config.MovieCompressionLevel);
			//_zip = new SharpZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
			//_zip = new SevenZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);

			if (notamovie)
			{
				PutLump(BinaryStateLump.Versiontag, WriteVersion);
			}
		}
Esempio n. 5
0
 public ZipStateSaver(string path, int compressionLevel)
 {
     _zip = new FrameworkZipWriter(path, compressionLevel);
 }