compress movies even if savestates are not compressed. separate config entry, not hookled up in config
This commit is contained in:
parent
55200588e8
commit
7f275c5ab5
|
@ -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 SharpZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
|
||||||
//_zip = new SevenZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
|
//_zip = new SevenZipWriter(path, Global.Config.SaveStateCompressionLevelNormal);
|
||||||
|
|
||||||
if (stateVersionTag)
|
if (notamovie)
|
||||||
{
|
{
|
||||||
PutLump(BinaryStateLump.Versiontag, WriteVersion);
|
PutLump(BinaryStateLump.Versiontag, WriteVersion);
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,6 +167,7 @@ namespace BizHawk.Client.Common
|
||||||
public int SaveStateCompressionLevelNormal = DefaultSaveStateCompressionLevelNormal;
|
public int SaveStateCompressionLevelNormal = DefaultSaveStateCompressionLevelNormal;
|
||||||
public const int DefaultSaveStateCompressionLevelRewind = 0;//this isnt actually used yet
|
public const int DefaultSaveStateCompressionLevelRewind = 0;//this isnt actually used yet
|
||||||
public int SaveStateCompressionLevelRewind = DefaultSaveStateCompressionLevelRewind;//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>
|
/// <summary>use vsync. if VSyncThrottle = false, this will try to use vsync without throttling to it</summary>
|
||||||
public bool VSync = false;
|
public bool VSync = false;
|
||||||
|
|
Loading…
Reference in New Issue