Improve getremainFrame.

Fixed Musou Orochi 2 and so on.
The hack way for numSamples may be still

necessary for some games. Just use a better hack way.
Buildfix
Merge pull request #1826 from raven02/patch-16

Buildfix
Don't preserve the selected save for DATA types.

Fixes #1825.
Merge pull request #1827 from unknownbrackets/savedata

Don't preserve the selected save for DATA types
Merge pull request #1822 from oioitff/atrac-fix

A serious bug fix for sceAtrac
Merge remote-tracking branch 'upstream/master' into fps2

Conflicts:
	Windows/KeyboardDevice.cpp
	native
Merge branch 'fps2' of https://github.com/leejuiping/ppsspp into fps2