mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 02:29:59 -06:00
Adjust event times after a PPC clock change
This likely doesn't change much, but it makes events trigger at the correct time after a clock change.
This commit is contained in:
@ -228,10 +228,12 @@ void PreInit()
|
||||
|
||||
void ChangePPCClock(Mode mode)
|
||||
{
|
||||
const u32 previous_clock = s_cpu_core_clock;
|
||||
if (mode == Mode::Wii)
|
||||
s_cpu_core_clock = 729000000u;
|
||||
else
|
||||
s_cpu_core_clock = 486000000u;
|
||||
CoreTiming::AdjustEventQueueTimes(s_cpu_core_clock, previous_clock);
|
||||
}
|
||||
|
||||
void Init()
|
||||
|
Reference in New Issue
Block a user