hrydgard/ppsspp — pull request #1267 by unknownbrackets (2013-04-13 07:42:48+00:00)
Title: Fix sceKernelWakeupThread when called twice

This func doesn't always *switch* to the thread, e.g. if it's a worse-priority thread. Some games were calling sceKernelWakeupThread() a second time before the thread actually ran, and the wakeupCount was not being incremented.

This fixes that by checking that the thread is still in the wait status.

Tales of Eternia now goes to world map (has some graphics issues...) and Final Fantasy 2 works. Hurray. May help other games, doesn't seem to have caused any issues.

Also threw in a typo fix.

-[Unknown]