From 26b25052c226058dd2d98e0b5fd6152fa05a79a5 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Fri, 29 Aug 2014 20:31:25 +0800 Subject: [PATCH] Fix sceKernelSelfStopUnloadModule parameters According to http://code.google.com/p/jpcsp/source/detail?r=3597 --- Core/HLE/sceKernelModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 1ff2515ecf..49cd5b6730 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2013,9 +2013,9 @@ u32 hleKernelStopUnloadSelfModuleWithOrWithoutStatus(u32 exitCode, u32 argSize, return 0; } -u32 sceKernelSelfStopUnloadModule(u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr) { +u32 sceKernelSelfStopUnloadModule(u32 exitCode, u32 argSize, u32 argp) { // Used in Tom Clancy's Splinter Cell Essentials,Ghost in the Shell Stand Alone Complex - return hleKernelStopUnloadSelfModuleWithOrWithoutStatus(0, argSize, argp, statusAddr, optionAddr, false); + return hleKernelStopUnloadSelfModuleWithOrWithoutStatus(exitCode, argSize, argp, 0, 0, false); } u32 sceKernelStopUnloadSelfModuleWithStatus(u32 exitCode, u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr) { @@ -2319,7 +2319,7 @@ const HLEFunction ModuleMgrForUser[] = {0x977DE386,&WrapU_CUU,"sceKernelLoadModule"}, {0xb7f46618,&WrapU_UUU,"sceKernelLoadModuleByID"}, {0x50F0C1EC,&WrapV_UUUUU,"sceKernelStartModule", HLE_NOT_IN_INTERRUPT | HLE_NOT_DISPATCH_SUSPENDED}, - {0xD675EBB8,WrapU_UUUU, "sceKernelSelfStopUnloadModule"}, + {0xD675EBB8,WrapU_UUU, "sceKernelSelfStopUnloadModule"}, {0xd1ff982a,&WrapU_UUUUU,"sceKernelStopModule", HLE_NOT_IN_INTERRUPT | HLE_NOT_DISPATCH_SUSPENDED}, {0x2e0911aa,WrapU_U,"sceKernelUnloadModule"}, {0x710F61B5,0,"sceKernelLoadModuleMs"},