Match the lighting/alpha logic in the sw transform.
Get rid of unused iterators.

Also fix the formatting in 3 sprintf calls.
Check if num is within range *before* accessing the array.
Merge pull request #596 from lioncash/master

Remove unused iterators, fix 3 sprintf calls' formatting.
Another 'Check if the number is within range before accessing' array change
Fix Qt interface compilation
Merge pull request #599 from mikusp/master

Fix Qt interface compilation
Merge pull request #598 from lioncash/master

Found another check that should be before the other one.
Cut down on h files including PointerWrap.

This makes changes to it a bit faster to build.
Expand out some savestate code saving non-pod.
Don't allocate a 0 array in savedata savestates.
Don't error when savestating a psmfplayer.
Add a safety check that p.Do() is only used on pod.
Make savestates automagically call DoState().
Simplify savestate code so it's all automagical.

If you can't beat 'em, join 'em?
Fix some more non-pod structs in savestates.
Automatically delete pointers when savestating.
Merge pull request #594 from unknownbrackets/savestates

Savestate / PointerWrap changes
Merge pull request #601 from unknownbrackets/hw-transform

Match the lighting/alpha logic in the sw transform
Android buildfix + cleanup