diff options
| author | 2014-05-29 23:54:09 -0400 | |
|---|---|---|
| committer | 2014-05-29 23:54:09 -0400 | |
| commit | 007b7edada86bf97e1499625c3c8fda25132bbac (patch) | |
| tree | 80f59f34d029f88300daa619363e48650b765060 /src | |
| parent | mutex: fixed typo in ReleaseMutex (diff) | |
| download | yuzu-007b7edada86bf97e1499625c3c8fda25132bbac.tar.gz yuzu-007b7edada86bf97e1499625c3c8fda25132bbac.tar.xz yuzu-007b7edada86bf97e1499625c3c8fda25132bbac.zip | |
srv: fix to log unimplemented service (instead of crash)
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/srv.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp index ac8f398fc..f1940e6f5 100644 --- a/src/core/hle/service/srv.cpp +++ b/src/core/hle/service/srv.cpp | |||
| @@ -36,18 +36,14 @@ void GetServiceHandle(Service::Interface* self) { | |||
| 36 | std::string port_name = std::string((const char*)&cmd_buff[1], 0, Service::kMaxPortSize); | 36 | std::string port_name = std::string((const char*)&cmd_buff[1], 0, Service::kMaxPortSize); |
| 37 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); | 37 | Service::Interface* service = Service::g_manager->FetchFromPortName(port_name); |
| 38 | 38 | ||
| 39 | DEBUG_LOG(OSHLE, "called port=%s, handle=0x%08X", port_name.c_str(), | ||
| 40 | service->GetHandle()); | ||
| 41 | |||
| 42 | if (NULL != service) { | 39 | if (NULL != service) { |
| 43 | cmd_buff[3] = service->GetHandle(); | 40 | cmd_buff[3] = service->GetHandle(); |
| 41 | DEBUG_LOG(OSHLE, "called port=%s, handle=0x%08X", port_name.c_str(), cmd_buff[3]); | ||
| 44 | } else { | 42 | } else { |
| 45 | ERROR_LOG(OSHLE, "Service %s does not exist", port_name.c_str()); | 43 | ERROR_LOG(OSHLE, "(UNIMPLEMENTED) called port=%s", port_name.c_str()); |
| 46 | res = -1; | 44 | res = -1; |
| 47 | } | 45 | } |
| 48 | cmd_buff[1] = res; | 46 | cmd_buff[1] = res; |
| 49 | |||
| 50 | //return res; | ||
| 51 | } | 47 | } |
| 52 | 48 | ||
| 53 | const Interface::FunctionInfo FunctionTable[] = { | 49 | const Interface::FunctionInfo FunctionTable[] = { |