Reset gdrom params when changing disk

This commit is contained in:
Flyinghead 2019-05-19 21:36:08 +02:00
parent a5ae8eeef0
commit 121e6b200b
1 changed files with 7 additions and 0 deletions

View File

@ -322,6 +322,13 @@ u32 GetFAD(u8* data, bool msf)
void libCore_gdrom_disc_change()
{
gd_setdisc();
read_params = { 0 };
set_mode_offset = 0;
packet_cmd = { 0 };
read_buff = { 0 };
pio_buff = { gds_waitcmd, 0 };
ata_cmd = { 0 };
cdda = { 0 };
}
//This handles the work of setting up the pio regs/state :)