summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-29 18:54:59 -0400
committerGravatar bunnei2014-05-29 18:54:59 -0400
commit545e6919ce33a815761aef0f32e8e052858a60b3 (patch)
tree939eecaf5f9aedc96da0ae2d837154ee6a99780f /src/core/hle
parentsrv: changed a NOTICE_LOG to DEBUG_LOG (diff)
downloadyuzu-545e6919ce33a815761aef0f32e8e052858a60b3.tar.gz
yuzu-545e6919ce33a815761aef0f32e8e052858a60b3.tar.xz
yuzu-545e6919ce33a815761aef0f32e8e052858a60b3.zip
service: added additional hack to return success on unimplemented service calls
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/service.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index 4a3d4c68a..8f8d4d552 100644
--- a/src/core/hle/service/service.h
+++ b/src/core/hle/service/service.h
@@ -87,12 +87,20 @@ public:
87 if (itr == m_functions.end()) { 87 if (itr == m_functions.end()) {
88 ERROR_LOG(OSHLE, "Unknown/unimplemented function: port = %s, command = 0x%08X!", 88 ERROR_LOG(OSHLE, "Unknown/unimplemented function: port = %s, command = 0x%08X!",
89 GetPortName(), cmd_buff[0]); 89 GetPortName(), cmd_buff[0]);
90 return 0; // TODO(bunnei): Hack - ignore error 90
91 // TODO(bunnei): Hack - ignore error
92 u32* cmd_buff = Service::GetCommandBuffer();
93 cmd_buff[1] = 0;
94 return 0;
91 } 95 }
92 if (itr->second.func == NULL) { 96 if (itr->second.func == NULL) {
93 ERROR_LOG(OSHLE, "Unimplemented function: port = %s, name = %s!", 97 ERROR_LOG(OSHLE, "Unimplemented function: port = %s, name = %s!",
94 GetPortName(), itr->second.name.c_str()); 98 GetPortName(), itr->second.name.c_str());
95 return 0; // TODO(bunnei): Hack - ignore error 99
100 // TODO(bunnei): Hack - ignore error
101 u32* cmd_buff = Service::GetCommandBuffer();
102 cmd_buff[1] = 0;
103 return 0;
96 } 104 }
97 105
98 itr->second.func(this); 106 itr->second.func(this);