WII_IPC_HLE: Fix timing weirdness

The reply delay of a command shouldn't be ignored just because the
previous command isn't done yet. DI is way too fast without this change.
This commit is contained in:
JosJuice 2014-12-20 21:44:22 +01:00
parent be9789f2c6
commit 34a37cc30d

View File

@ -529,7 +529,7 @@ void ExecuteCommand(u32 _Address)
// Ensure replies happen in order // Ensure replies happen in order
const s64 ticks_until_last_reply = last_reply_time - CoreTiming::GetTicks(); const s64 ticks_until_last_reply = last_reply_time - CoreTiming::GetTicks();
if (ticks_until_last_reply > 0) if (ticks_until_last_reply > 0)
result.reply_delay_ticks = ticks_until_last_reply; result.reply_delay_ticks += ticks_until_last_reply;
last_reply_time = CoreTiming::GetTicks() + result.reply_delay_ticks; last_reply_time = CoreTiming::GetTicks() + result.reply_delay_ticks;
if (result.send_reply) if (result.send_reply)