Fix r4862 and make the input system a bit saner.

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4866 5577840e-afb3-4e59-9ef3-2b7f898b1952
core:
- add slot2 to savestate;

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4867 5577840e-afb3-4e59-9ef3-2b7f898b1952
core:
- fix load slot2 savestate from old savestates created before [r4867]

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4868 5577840e-afb3-4e59-9ef3-2b7f898b1952
Slot2:
- implement save state of "Memory Expansion Pak";

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4869 5577840e-afb3-4e59-9ef3-2b7f898b1952
savestates:
- fix write Slot1/Slot2 device ID;
- write more info in savestate;

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4870 5577840e-afb3-4e59-9ef3-2b7f898b1952
fix linux build

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4871 5577840e-afb3-4e59-9ef3-2b7f898b1952
SVN revision fixes, mostly for linux

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4872 5577840e-afb3-4e59-9ef3-2b7f898b1952