From b010f1bd48fea0114b7f4cd69d4eaa8fab5fd9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 6 Dec 2024 13:38:10 +0100 Subject: [PATCH] Make the dispatcher less confusing --- Core/HLE/sceKernelModule.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 598b10d42b..40fb6a26df 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -1995,11 +1995,8 @@ bool __KernelLoadGEDump(const std::string &base_filename, std::string *error_str // Make sure we don't get out of sync. MIPS_MAKE_LUI(MIPS_REG_A0, 0), MIPS_MAKE_SYSCALL("sceGe_user", "sceGeDrawSync"), - // Set the return address after the entry which saved the filename. - MIPS_MAKE_LUI(MIPS_REG_RA, mipsr4k.pc >> 16), - MIPS_MAKE_ADDIU(MIPS_REG_RA, MIPS_REG_RA, 8), // Wait for the next vblank to render again. - MIPS_MAKE_JR_RA(), + MIPS_MAKE_J(mipsr4k.pc + 8), MIPS_MAKE_SYSCALL("sceDisplay", "sceDisplayWaitVblankStart"), // This never gets reached, just here to be safe. MIPS_MAKE_BREAK(0),