Reset gdrom params when changing disk
This commit is contained in:
parent
a5ae8eeef0
commit
121e6b200b
|
@ -322,6 +322,13 @@ u32 GetFAD(u8* data, bool msf)
|
||||||
void libCore_gdrom_disc_change()
|
void libCore_gdrom_disc_change()
|
||||||
{
|
{
|
||||||
gd_setdisc();
|
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 :)
|
//This handles the work of setting up the pio regs/state :)
|
||||||
|
|
Loading…
Reference in New Issue