fix potential exception in AutosaveSaveRAMSeconds setter
previous default was 0 which is now disallowed
This commit is contained in:
parent
21e4636eec
commit
ef2ce91527
|
@ -1,6 +1,7 @@
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using BizHawk.Client.Common;
|
using BizHawk.Client.Common;
|
||||||
using BizHawk.Common;
|
using BizHawk.Common;
|
||||||
|
using BizHawk.Common.NumberExtensions;
|
||||||
|
|
||||||
namespace BizHawk.Client.EmuHawk
|
namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
|
@ -54,7 +55,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
AutosaveSRAMtextBox.Value = value;
|
AutosaveSRAMtextBox.Value = ((decimal) value).Clamp(AutosaveSRAMtextBox.Minimum, AutosaveSRAMtextBox.Maximum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue