Skip to content

Commit

Permalink
xdvd: Reset security data on disc change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Jun 13, 2024
1 parent 3b1bc32 commit acf91dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hw/ide/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,13 @@ static void ide_cd_change_cb(void *opaque, bool load, Error **errp)
s->cdrom_changed = 1;
s->events.new_media = true;
s->events.eject_request = false;

#ifdef XBOX
memset(s->xdvd_challenges_encrypted, 0, sizeof(s->xdvd_challenges_encrypted));
memset(s->xdvd_challenges_decrypted, 0, sizeof(s->xdvd_challenges_decrypted));
memset(&s->xdvd_security, 0, sizeof(s->xdvd_security));
#endif

ide_set_irq(s->bus);
}

Expand Down

0 comments on commit acf91dd

Please sign in to comment.