@@ -484,7 +484,7 @@ void CDROM::Reset()
484
484
s_mode.read_raw_sector = true ;
485
485
s_interrupt_enable_register = INTERRUPT_REGISTER_MASK;
486
486
s_interrupt_flag_register = 0 ;
487
- s_last_interrupt_time = TimingEvents ::GetGlobalTickCounter () - MINIMUM_INTERRUPT_DELAY;
487
+ s_last_interrupt_time = System ::GetGlobalTickCounter () - MINIMUM_INTERRUPT_DELAY;
488
488
ClearAsyncInterrupt ();
489
489
s_setloc_position = {};
490
490
s_seek_start_lba = 0 ;
@@ -605,7 +605,7 @@ bool CDROM::DoState(StateWrapper& sw)
605
605
606
606
sw.Do (&s_interrupt_enable_register);
607
607
sw.Do (&s_interrupt_flag_register);
608
- sw.DoEx (&s_last_interrupt_time, 57 , TimingEvents ::GetGlobalTickCounter () - MINIMUM_INTERRUPT_DELAY);
608
+ sw.DoEx (&s_last_interrupt_time, 57 , System ::GetGlobalTickCounter () - MINIMUM_INTERRUPT_DELAY);
609
609
sw.Do (&s_pending_async_interrupt);
610
610
sw.DoPOD (&s_setloc_position);
611
611
sw.Do (&s_current_lba);
@@ -1097,7 +1097,7 @@ bool CDROM::HasPendingAsyncInterrupt()
1097
1097
void CDROM::SetInterrupt (Interrupt interrupt)
1098
1098
{
1099
1099
s_interrupt_flag_register = static_cast <u8 >(interrupt);
1100
- s_last_interrupt_time = TimingEvents ::GetGlobalTickCounter ();
1100
+ s_last_interrupt_time = System ::GetGlobalTickCounter ();
1101
1101
UpdateInterruptRequest ();
1102
1102
}
1103
1103
@@ -1138,7 +1138,7 @@ void CDROM::QueueDeliverAsyncInterrupt()
1138
1138
return ;
1139
1139
1140
1140
// underflows here are okay
1141
- const u32 diff = TimingEvents ::GetGlobalTickCounter () - s_last_interrupt_time;
1141
+ const u32 diff = System ::GetGlobalTickCounter () - s_last_interrupt_time;
1142
1142
if (diff >= MINIMUM_INTERRUPT_DELAY)
1143
1143
{
1144
1144
DeliverAsyncInterrupt (nullptr , 0 , 0 );
@@ -2442,13 +2442,13 @@ void CDROM::UpdatePositionWhileSeeking()
2442
2442
2443
2443
s_current_lba = current_lba;
2444
2444
s_physical_lba = current_lba;
2445
- s_physical_lba_update_tick = TimingEvents ::GetGlobalTickCounter ();
2445
+ s_physical_lba_update_tick = System ::GetGlobalTickCounter ();
2446
2446
s_physical_lba_update_carry = 0 ;
2447
2447
}
2448
2448
2449
2449
void CDROM::UpdatePhysicalPosition (bool update_logical)
2450
2450
{
2451
- const u32 ticks = TimingEvents ::GetGlobalTickCounter ();
2451
+ const u32 ticks = System ::GetGlobalTickCounter ();
2452
2452
if (IsSeeking () || IsReadingOrPlaying () || !IsMotorOn ())
2453
2453
{
2454
2454
// If we're seeking+reading the first sector (no stat bits set), we need to return the set/current lba, not the last
@@ -2539,7 +2539,7 @@ void CDROM::SetHoldPosition(CDImage::LBA lba, bool update_subq)
2539
2539
2540
2540
s_current_lba = lba;
2541
2541
s_physical_lba = lba;
2542
- s_physical_lba_update_tick = TimingEvents ::GetGlobalTickCounter ();
2542
+ s_physical_lba_update_tick = System ::GetGlobalTickCounter ();
2543
2543
s_physical_lba_update_carry = 0 ;
2544
2544
}
2545
2545
@@ -2607,7 +2607,7 @@ bool CDROM::CompleteSeek()
2607
2607
}
2608
2608
2609
2609
s_physical_lba = s_current_lba;
2610
- s_physical_lba_update_tick = TimingEvents ::GetGlobalTickCounter ();
2610
+ s_physical_lba_update_tick = System ::GetGlobalTickCounter ();
2611
2611
s_physical_lba_update_carry = 0 ;
2612
2612
return seek_okay;
2613
2613
}
@@ -2783,7 +2783,7 @@ void CDROM::DoSectorRead()
2783
2783
2784
2784
s_current_lba = s_reader.GetLastReadSector ();
2785
2785
s_physical_lba = s_current_lba;
2786
- s_physical_lba_update_tick = TimingEvents ::GetGlobalTickCounter ();
2786
+ s_physical_lba_update_tick = System ::GetGlobalTickCounter ();
2787
2787
s_physical_lba_update_carry = 0 ;
2788
2788
2789
2789
s_secondary_status.SetReadingBits (s_drive_state == DriveState::Playing);
0 commit comments