taisel / GameBoy-Online

JavaScript GameBoy Color emulator.
http://taisel.github.io/GameBoy-Online/
592 stars 174 forks source link

Adding a new saveState API to allow saves with different identifiers. #6

Closed jbmorley closed 8 years ago

jbmorley commented 8 years ago

Save state is restored by an openState API which explicitly takes the filename / identifier to be opened. This change introduces a matching saveState API which takes the identifier to be saved. This new API is then re-used in the existing save method.

This new API has been added to make it easier to explicitly manage the save slots in Game Play Color.

jbmorley commented 8 years ago

@taisel Thanks so much for merging this one.