compress movies even if savestates are not compressed. separate config entry, not hookled up in config

This commit is contained in:
goyuken 2015-05-31 18:31:45 +00:00
parent 55200588e8
commit 7f275c5ab5
2 changed files with 5 additions and 3 deletions

View File

@ -264,13 +264,14 @@ namespace BizHawk.Client.Common
}
public BinaryStateSaver(string path, bool stateVersionTag = true) // stateVersionTag is a hack for reusing this for movie code
public BinaryStateSaver(string path, bool notamovie = true) // notamovie is hack, really should have separate something
{
_zip = new IonicZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
_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 (stateVersionTag)
if (notamovie)
{
PutLump(BinaryStateLump.Versiontag, WriteVersion);
}

View File

@ -167,6 +167,7 @@ namespace BizHawk.Client.Common
public int SaveStateCompressionLevelNormal = DefaultSaveStateCompressionLevelNormal;
public const int DefaultSaveStateCompressionLevelRewind = 0;//this isnt actually used yet
public int SaveStateCompressionLevelRewind = DefaultSaveStateCompressionLevelRewind;//this isnt actually used yet
public int MovieCompressionLevel = 2;
/// <summary>use vsync. if VSyncThrottle = false, this will try to use vsync without throttling to it</summary>
public bool VSync = false;