Skip to content

Commit

Permalink
BUGFIX: Emulator only supported 8 save states, not 9
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeTheMasterBuilder committed Jan 11, 2023
1 parent adb0136 commit e5fe40c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ R = Reset NES
F5 = Save save state to selected slot
F7 = Load save state from selected slot

Up to 8 save states are supported, which are saved to a file with the same name as the rom but with extension `.stat.`. For cartridges that have battery-backed RAM, the data will be saved to a file with extension `.sav`.
Up to 9 save states are supported, which are saved to a file with the same name as the rom but with extension `.stat.`. For cartridges that have battery-backed RAM, the data will be saved to a file with extension `.sav`.

NOTE: The emulator requires a controller to play.

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ impl Nes {

name.set_extension("stat");

let mut states = vec![None; 8];
let mut states = vec![None; 9];

if let Ok(mut save_file) = File::open(name) {
let mut data = Vec::new();
Expand Down

0 comments on commit e5fe40c

Please sign in to comment.