diff --git a/libogc/exi.c b/libogc/exi.c index e0ea94b6..4b973a5d 100644 --- a/libogc/exi.c +++ b/libogc/exi.c @@ -838,6 +838,21 @@ void EXI_ProbeReset(void) __exi_probe(0); __exi_probe(1); + + //kinda hack because there are no system globals to store this information + //after a reset the devices usually already have settled, so they dont need the 300ms wait + for(unsigned i = 0; i < EXI_CHANNEL_2; i++) + { + if(last_exi_idtime[i]==0) + continue; + + u64 ticks = PPCMsToTicks(300) - PPCNsToTicks(300); + // avoid 0, which is not found + if(last_exi_idtime[i] == ticks) + last_exi_idtime[i] = 1; + else + last_exi_idtime[i] -= ticks; + } } void __exi_init(void)