From 5a797a08f71ff919885c0f9f81bcc6fa9bf359a4 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 27 Aug 2016 14:18:59 -0700 Subject: [PATCH] Io: Do not delay on file seek. This doesn't seem to reschedule, must've measured wrong in #939. Fixes #8749. --- Core/HLE/sceIo.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceIo.cpp b/Core/HLE/sceIo.cpp index f02b2fa5b5..628148fbd8 100644 --- a/Core/HLE/sceIo.cpp +++ b/Core/HLE/sceIo.cpp @@ -1257,7 +1257,9 @@ static s64 sceIoLseek(int id, s64 offset, int whence) { if (result >= 0 || result == -1) { DEBUG_LOG(SCEIO, "%lli = sceIoLseek(%d, %llx, %i)", result, id, offset, whence); // Educated guess at timing. - return hleDelayResult(result, "io seek", 100); + hleEatCycles(1400); + hleReSchedule("io seek"); + return result; } else { ERROR_LOG(SCEIO, "sceIoLseek(%d, %llx, %i) - ERROR: invalid file", id, offset, whence); return result; @@ -1269,7 +1271,9 @@ static u32 sceIoLseek32(int id, int offset, int whence) { if (result >= 0 || result == -1) { DEBUG_LOG(SCEIO, "%i = sceIoLseek32(%d, %x, %i)", result, id, offset, whence); // Educated guess at timing. - return hleDelayResult(result, "io seek", 100); + hleEatCycles(1400); + hleReSchedule("io seek"); + return result; } else { ERROR_LOG(SCEIO, "sceIoLseek32(%d, %x, %i) - ERROR: invalid file", id, offset, whence); return result;