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:
parent
70a9b535f5
commit
eed16fafc8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue