Skip to content

Commit

Permalink
Fixed initialization of the "fds.auto_insert" structure when a reset …
Browse files Browse the repository at this point in the history
…is performed.
  • Loading branch information
punesemu committed Jan 3, 2024
1 parent e6878b4 commit 111941e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/mappers/mapper_FDS.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ void map_init_FDS(void) {
EXTCL_CPU_EVERY_CYCLE(FDS);
EXTCL_APU_TICK(FDS);

memset (&fds.auto_insert, 0x00, sizeof(fds.auto_insert));
fds.auto_insert.r4032.checks = 0;
fds.auto_insert.r4032.frames = 0;
fds.auto_insert.delay.dummy = 0;
fds.auto_insert.rE445.in_run = FALSE;
fds.auto_insert.in_game = FALSE;

fds.drive.transfer_reset = 0x02;
fds.drive.io_mode = 0x04;
fds.drive.drive_ready = 0x40;
Expand Down

0 comments on commit 111941e

Please sign in to comment.