(02-15-2010, 12:55 AM)KarstenS Wrote: I've applied your modifications, compiled and ran (Mario Kart Wii). I went through the menus 1Pl, 50cc, Mario, first Kart, Mushroom Cup. After the race started and I've passed the first item boxes I hit ESC and...still hang.
Seems not to work for me. Still need task manager to quit.
It may be a deadlock in emuThreadGoing.MsgWait() or cpuThread->WaitForDeath() then. The first thing I would add to the patch is a function that waits for cpuThread to end too, by setting CPU_PowerPC::CPU_POWERDOWN and wait for cpuRunloopQuit.Set() before going to Stop().