Toggle option "Disable Stencil Test" & "Always Depth Write"
Change item-name to "Hack Settings"
Apply gstate.getTextureDimension(level)
Add u16 getTextureDimension(int level)
Split msgpipe handling logic from wait/resched.

This way I can reuse it for the callback stuff.
Reorganize msgpipes code a bit to prep. for cbs.

No real changes.
Adjust some helpers for msgpipes.
Refactor and add a way to remove msgpipe waits.
Add callback handlers for msgpipes.
Merge pull request #3696 from unknownbrackets/msgpipes

Add callback handlers to msgpipes as well
Render-to-texture : Add | 0x04000000 to address
Merge pull request #3697 from raven02/patch-22

Render-to-texture : Add | 0x04000000 to address
Add a check in OnImportCheat to avoid crashing when can not get the title from cheat.db
Merge pull request #3701 from shenweip/master

Add a check in OnImportCheat to avoid crashing when can not get the title from cheat.db
Merge pull request #3646 from raven02/patch-17

Toggle option "Disable Stencil Test" & "Always Depth Write"
Keep a single list of pending callbacks.

Doing it per type only meant that we'd incorrectly call a callback twice
if it was notified by e.g. scePowerRegisterCallback() and
sceKernelNotifyThread(), which isn't what's supposed to happen.
Decentralize callback registration.

Callbacks are always tied to THEIR thread, and the registration was all
based on the current thread which is just not the right way.
Clean up umd bad callback id errors, oops.
Run callbacks in creation order, not notify order.
Delete callbacks when their thread is deleted.