N64: When disposing of the core repeatedly send the stop command, because for some reason sometimes sending it just once doesn't work
This commit is contained in:
parent
89f61e6daa
commit
0d4ed449e1
|
@ -712,9 +712,11 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
|
||||||
if (!disposed)
|
if (!disposed)
|
||||||
{
|
{
|
||||||
// Stop the core, and wait for it to end
|
// Stop the core, and wait for it to end
|
||||||
m64pCoreDoCommandPtr(m64p_command.M64CMD_STOP, 0, IntPtr.Zero);
|
while (emulator_running)
|
||||||
//m64pEmulator.Join();
|
{
|
||||||
while (emulator_running) { }
|
// Repeatedly send the stop command, because sometimes sending it just once doesn't work
|
||||||
|
m64pCoreDoCommandPtr(m64p_command.M64CMD_STOP, 0, IntPtr.Zero);
|
||||||
|
}
|
||||||
|
|
||||||
// Backup the saveram in case bizhawk wants to get at is after we've freed the libraries
|
// Backup the saveram in case bizhawk wants to get at is after we've freed the libraries
|
||||||
saveram_backup = SaveSaveram();
|
saveram_backup = SaveSaveram();
|
||||||
|
|
Loading…
Reference in New Issue