From e37244cfead7c537e5eafe1be24861ed23f6cc52 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 15 Mar 2014 01:18:35 -0700 Subject: [PATCH] Eat cycles in sceUtilitySavedataGetStatus(). Matching tests. Improves performance in Fieldrunners startup and I think in game. --- Core/HLE/sceUtility.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/HLE/sceUtility.cpp b/Core/HLE/sceUtility.cpp index 41ef881de1..773659574e 100644 --- a/Core/HLE/sceUtility.cpp +++ b/Core/HLE/sceUtility.cpp @@ -145,11 +145,13 @@ int sceUtilitySavedataGetStatus() if (currentDialogType != UTILITY_DIALOG_SAVEDATA) { DEBUG_LOG(SCEUTILITY, "sceUtilitySavedataGetStatus(): wrong dialog type"); + hleEatCycles(200); return SCE_ERROR_UTILITY_WRONG_TYPE; } int status = saveDialog.GetStatus(); DEBUG_LOG(SCEUTILITY, "%08x=sceUtilitySavedataGetStatus()", status); + hleEatCycles(200); return status; }