From a02cbc9b787d904ac6af66db451318a73222bf8d Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 29 Sep 2024 17:30:56 +0100 Subject: [PATCH] WII_IPC: rewrite multiply as 100_tbticks literal (NFC) --- Source/Core/Core/HW/WII_IPC.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HW/WII_IPC.cpp b/Source/Core/Core/HW/WII_IPC.cpp index 4243f57ae6..8ce63d7c1f 100644 --- a/Source/Core/Core/HW/WII_IPC.cpp +++ b/Source/Core/Core/HW/WII_IPC.cpp @@ -290,8 +290,7 @@ void WiiIPC::GenerateAck(u32 address) m_ctrl.Y1, m_ctrl.Y2, m_ctrl.X1); // Based on a hardware test, the IPC interrupt takes approximately 100 TB ticks to fire // after Y2 is seen in the control register. - m_system.GetCoreTiming().ScheduleEvent(100 * SystemTimers::TIMER_RATIO, - m_event_type_update_interrupts); + m_system.GetCoreTiming().ScheduleEvent(100_tbticks, m_event_type_update_interrupts); } void WiiIPC::GenerateReply(u32 address) @@ -302,8 +301,7 @@ void WiiIPC::GenerateReply(u32 address) m_ctrl.Y1, m_ctrl.Y2, m_ctrl.X1); // Based on a hardware test, the IPC interrupt takes approximately 100 TB ticks to fire // after Y1 is seen in the control register. - m_system.GetCoreTiming().ScheduleEvent(100 * SystemTimers::TIMER_RATIO, - m_event_type_update_interrupts); + m_system.GetCoreTiming().ScheduleEvent(100_tbticks, m_event_type_update_interrupts); } bool WiiIPC::IsReady() const