diff options
| -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 | ||