Ignore the current button state in savestates.

Fixes #4149.
Merge pull request #4590 from unknownbrackets/savestates

Ignore the current button state in savestates.