fix Movie restart I broke some days ago

This commit is contained in:
adelikat 2020-05-30 16:35:20 -05:00
parent 030c2c9570
commit 35de59488a
1 changed files with 8 additions and 4 deletions

View File

@ -21,10 +21,14 @@ namespace BizHawk.Client.Common
public virtual void Attach(IMovieSession session, IEmulator emulator)
{
if (!Emulator.IsNull())
{
throw new InvalidOperationException("A core has already been attached!");
}
// TODO: this check would ideally happen
// but is disabled for now because restarting a movie doesn't new one up
// so the old one hangs around with old emulator until this point
// maybe we should new it up, or have a detach method
//if (!Emulator.IsNull())
//{
// throw new InvalidOperationException("A core has already been attached!");
//}
Emulator = emulator;
Session = session;