settings hacks - actually map compression to a compression settings, give rewind an "off" switch, hacked to small states for now
This commit is contained in:
parent
02a2efbed1
commit
84c691021b
|
@ -24,7 +24,7 @@ namespace BizHawk.Client.Common
|
||||||
public Zwinder(int targetFrameLength, IBinaryStateable stateSource, IRewindSettings settings)
|
public Zwinder(int targetFrameLength, IBinaryStateable stateSource, IRewindSettings settings)
|
||||||
{
|
{
|
||||||
long targetSize = settings.BufferSize * 1024 * 1024;
|
long targetSize = settings.BufferSize * 1024 * 1024;
|
||||||
bool kompress = settings.EnabledSmall;
|
bool kompress = settings.UseDelta;
|
||||||
if (targetSize < 65536)
|
if (targetSize < 65536)
|
||||||
throw new ArgumentOutOfRangeException(nameof(targetSize));
|
throw new ArgumentOutOfRangeException(nameof(targetSize));
|
||||||
if (targetFrameLength < 1)
|
if (targetFrameLength < 1)
|
||||||
|
|
|
@ -865,11 +865,19 @@ namespace BizHawk.Client.EmuHawk
|
||||||
public void CreateRewinder()
|
public void CreateRewinder()
|
||||||
{
|
{
|
||||||
Rewinder?.Dispose();
|
Rewinder?.Dispose();
|
||||||
|
|
||||||
|
if (Config.Rewind.EnabledSmall)
|
||||||
|
{
|
||||||
Rewinder = Emulator.HasSavestates() && Config.Rewind.EnabledSmall // TODO: replace this with just a single "enabled"?
|
Rewinder = Emulator.HasSavestates() && Config.Rewind.EnabledSmall // TODO: replace this with just a single "enabled"?
|
||||||
? new Zwinder(600, Emulator.AsStatable(), Config.Rewind)
|
? new Zwinder(600, Emulator.AsStatable(), Config.Rewind)
|
||||||
// ? new Rewinder(Emulator.AsStatable(), Config.Rewind)
|
// ? new Rewinder(Emulator.AsStatable(), Config.Rewind)
|
||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Rewinder = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private FirmwareManager FirmwareManager => GlobalWin.FirmwareManager;
|
private FirmwareManager FirmwareManager => GlobalWin.FirmwareManager;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue