From 6575f9d03a3f8dd47d356ab400b7109e189d2e20 Mon Sep 17 00:00:00 2001 From: daco65 Date: Fri, 8 Jan 2010 22:11:18 +0000 Subject: [PATCH] error 003 fix when booting system menu 4.2. note that the 0x45 doesn't actually have a name tho git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4796 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp | 7 ++++++- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp index 2b964d91a0..42db4eee29 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp @@ -717,7 +717,12 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress) case IOCTL_ES_GETDEVICECERT: // (Input: none, Output: 384 bytes) WARN_LOG(WII_IPC_ES, "IOCTL_ES_GETDEVICECERT: this looks really wrong..."); break; - + case IOCTL_ES_CHECKKOREAREGION: //note by DacoTaco : name is unknown, i just tried to name it SOMETHING + //IOS70 has this to let system menu 4.2 check if the console is region changed. it returns -1017 + //if the IOS didn't find the korean keys and 0 if it does. 0 leads to a error 003 + WARN_LOG(WII_IPC_ES,"IOCTL_ES_CHECKKOREAREGION: Title Checked for korean Keys"); + Memory::Write_U32(ES_PARAMTER_SIZE_OR_ALIGNMENT , _CommandAddress + 0x4); + return true; default: WARN_LOG(WII_IPC_ES, "CWII_IPC_HLE_Device_es: 0x%x", Buffer.Parameter); diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.h b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.h index a60af6f316..05504b23a5 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.h +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.h @@ -97,6 +97,7 @@ private: IOCTL_ES_GETSTOREDTMD = 0x35, IOCTL_ES_GETSHAREDCONTENTCNT = 0x36, IOCTL_ES_GETSHAREDCONTENTS = 0x37, + IOCTL_ES_CHECKKOREAREGION = 0x45, }; enum EErrorCodes