Skip to content

Commit

Permalink
Fix save aux spi cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Grarak committed Jan 7, 2025
1 parent 1ce7b40 commit 09c2e58
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/core/memory/cartridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ impl Cartridge {
let inner = &mut self.inner[cpu];

if inner.aux_write_count == 0 {
match value {
0x4 | 0x6 => inner.aux_spi_data = 0,
_ => {
inner.aux_command = value;
inner.aux_address = 0;
inner.aux_spi_data = 0xFF;
}
if value == 0 {
return;
}
inner.aux_command = value;
inner.aux_address = 0;
inner.aux_spi_data = 0;
} else {
if self.io.save_file_size == 0 {
match inner.aux_command {
Expand Down

0 comments on commit 09c2e58

Please sign in to comment.