diff options
| author | 2018-11-19 18:40:17 -0800 | |
|---|---|---|
| committer | 2018-11-19 18:40:17 -0800 | |
| commit | e9265ac598d65a41e5d62103e48b7786e7cd64d6 (patch) | |
| tree | ebd11931b5b515e567d7d85354a3619b6c3ca55e | |
| parent | Merge pull request #1738 from lioncash/res-limit (diff) | |
| parent | lm: Implement SetDestination by doing nothing (diff) | |
| download | yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar.gz yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar.xz yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.zip | |
Merge pull request #1739 from lioncash/lm
lm: Implement SetDestination by doing nothing
| -rw-r--r-- | src/core/hle/service/lm/lm.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp index c89157a4d..4e5fdb16e 100644 --- a/src/core/hle/service/lm/lm.cpp +++ b/src/core/hle/service/lm/lm.cpp | |||
| @@ -18,7 +18,7 @@ public: | |||
| 18 | ILogger() : ServiceFramework("ILogger") { | 18 | ILogger() : ServiceFramework("ILogger") { |
| 19 | static const FunctionInfo functions[] = { | 19 | static const FunctionInfo functions[] = { |
| 20 | {0x00000000, &ILogger::Initialize, "Initialize"}, | 20 | {0x00000000, &ILogger::Initialize, "Initialize"}, |
| 21 | {0x00000001, nullptr, "SetDestination"}, | 21 | {0x00000001, &ILogger::SetDestination, "SetDestination"}, |
| 22 | }; | 22 | }; |
| 23 | RegisterHandlers(functions); | 23 | RegisterHandlers(functions); |
| 24 | } | 24 | } |
| @@ -178,6 +178,17 @@ private: | |||
| 178 | } | 178 | } |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | // This service function is intended to be used as a way to | ||
| 182 | // redirect logging output to different destinations, however, | ||
| 183 | // given we always want to see the logging output, it's sufficient | ||
| 184 | // to do nothing and return success here. | ||
| 185 | void SetDestination(Kernel::HLERequestContext& ctx) { | ||
| 186 | LOG_DEBUG(Service_LM, "called"); | ||
| 187 | |||
| 188 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 189 | rb.Push(RESULT_SUCCESS); | ||
| 190 | } | ||
| 191 | |||
| 181 | std::ostringstream log_stream; | 192 | std::ostringstream log_stream; |
| 182 | }; | 193 | }; |
| 183 | 194 | ||