This commit is contained in:
nattthebear 2017-06-11 07:50:41 -04:00
parent fa9dcfae35
commit a6e4b87f36
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
});
using (_exe.EnterExit())
{
// Marshal checks that function pointers passed to GetDelegateForFunctionPointer are
// _currently_ valid when created, even though they don't need to be valid until
// the delegate is later invoked. so GetInvoker needs to be acquired within a lock.
_core = BizInvoker.GetInvoker<CoreImpl>(_exe, _exe);
_comm = (CommStruct*)_core.DllInit().ToPointer();
}