diff options
| author | bunnei <bunneidev@gmail.com> | 2018-11-19 18:40:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-19 18:40:17 -0800 |
| commit | 744cd346fffdd341db065d6e1e2a86775298bfdf (patch) | |
| tree | ebd11931b5b515e567d7d85354a3619b6c3ca55e /src | |
| parent | c9fb7e3c060a26c086670989296b151ab12d487b (diff) | |
| parent | 5508ceb0eb3bc2694abee03e5d69d96ea160eed6 (diff) | |
Merge pull request #1739 from lioncash/lm
lm: Implement SetDestination by doing nothing
Diffstat (limited to 'src')
| -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 c89157a4d7..4e5fdb16ec 100644 --- a/src/core/hle/service/lm/lm.cpp +++ b/src/core/hle/service/lm/lm.cpp @@ -18,7 +18,7 @@ public: ILogger() : ServiceFramework("ILogger") { static const FunctionInfo functions[] = { {0x00000000, &ILogger::Initialize, "Initialize"}, - {0x00000001, nullptr, "SetDestination"}, + {0x00000001, &ILogger::SetDestination, "SetDestination"}, }; RegisterHandlers(functions); } @@ -178,6 +178,17 @@ private: } } + // This service function is intended to be used as a way to + // redirect logging output to different destinations, however, + // given we always want to see the logging output, it's sufficient + // to do nothing and return success here. + void SetDestination(Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_LM, "called"); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + } + std::ostringstream log_stream; }; |
