Make use of Mednafen save state functions