Refactored Save/Load state based on Emulator Configuration.