From 4a00bbbc33e8c88a0596b69b7a14d8f19ccb59dd Mon Sep 17 00:00:00 2001 From: raven02 Date: Mon, 31 Dec 2012 17:12:14 +0800 Subject: [PATCH] Add sceKernelSetCompiledSdkVersion500_505/507 --- Core/HLE/sceKernelMemory.cpp | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index bce9a5cec..859c62c43 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -595,6 +595,41 @@ void sceKernelSetCompiledSdkVersion600_602(int sdkVersion) return; } +void sceKernelSetCompiledSdkVersion500_505(int sdkVersion) +{ + int sdkMainVersion = sdkVersion & 0xFFFF0000; + if(sdkMainVersion == 0x5000000 + || sdkMainVersion == 0x5010000 + || sdkMainVersion == 0x5020000 + || sdkMainVersion == 0x5030000 + || sdkMainVersion == 0x5040000 + || sdkMainVersion == 0x5050000) + { + sdkVersion_ = sdkVersion; + flags_ |= SCE_KERNEL_HASCOMPILEDSDKVERSION; + } + else + { + ERROR_LOG(HLE,"sceKernelSetCompiledSdkVersion500_505 unknown SDK : %x\n",sdkVersion); + } + return; +} + +void sceKernelSetCompiledSdkVersion507(int sdkVersion) +{ + int sdkMainVersion = sdkVersion & 0xFFFF0000; + if(sdkMainVersion == 0x5070000) + { + sdkVersion_ = sdkVersion; + flags_ |= SCE_KERNEL_HASCOMPILEDSDKVERSION; + } + else + { + ERROR_LOG(HLE,"sceKernelSetCompiledSdkVersion507 unknown SDK : %x\n",sdkVersion); + } + return; +} + void sceKernelSetCompiledSdkVersion603_605(int sdkVersion) { int sdkMainVersion = sdkVersion & 0xFFFF0000; @@ -886,6 +921,8 @@ const HLEFunction SysMemUserForUser[] = { {0x315AD3A0,&WrapV_I,"sceKernelSetCompiledSdkVersion380_390"}, {0xEBD5C3E6,&WrapV_I,"sceKernelSetCompiledSdkVersion395"}, {0xf77d77cb,&WrapV_I,"sceKernelSetCompilerVersion"}, + {0x91de343c,&WrapV_I,"sceKernelSetCompiledSdkVersion500_505"}, + {0x7893f79a,&WrapV_I,"sceKernelSetCompiledSdkVersion507"}, {0x35669d4c,&WrapV_I,"sceKernelSetCompiledSdkVersion600_602"}, //?? {0x1b4217bc,&WrapV_I,"sceKernelSetCompiledSdkVersion603_605"}, {0x358ca1bb,&WrapV_I,"sceKernelSetCompiledSdkVersion606"},