diff --git a/BizHawk.Emulation/Consoles/Nintendo/N64/N64.cs b/BizHawk.Emulation/Consoles/Nintendo/N64/N64.cs index 59e5353eca..44997c89b8 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/N64/N64.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/N64/N64.cs @@ -522,9 +522,11 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64 public void ExecuteEmulator() { emulator_running = true; + var cb = new StartupCallback(() => m64pStartupComplete.Set()); m64pCoreDoCommandPtr(m64p_command.M64CMD_EXECUTE, 0, - Marshal.GetFunctionPointerForDelegate(new StartupCallback(() => m64pStartupComplete.Set()))); + Marshal.GetFunctionPointerForDelegate(cb)); emulator_running = false; + cb.GetType(); }