TasStateManager - don't check for null emulator nor IStatable, fail catastrophically if a core is not IStatable, they shouldn't have gotten this far if it wasn't

This commit is contained in:
adelikat 2014-11-30 17:54:21 +00:00
parent 70a9b535f5
commit eed16fafc8
1 changed files with 5 additions and 7 deletions

View File

@ -54,14 +54,12 @@ namespace BizHawk.Client.Common
var cap = Settings.Cap;
int limit = 0;
if (!Global.Emulator.IsNull())
{
_expectedStateSize = Core.SaveStateBinary().Length;
_expectedStateSize = Core.SaveStateBinary().Length;
if (_expectedStateSize > 0)
{
limit = cap / _expectedStateSize;
}
if (_expectedStateSize > 0)
{
limit = cap / _expectedStateSize;
}
States = new SortedList<int, byte[]>(limit);