diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-20 00:00:11 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-20 00:09:40 +0100 |
commit | 34e4aaddd95557e8aa3587c4002e506621a3e3a0 (patch) | |
tree | 05a607b892b9be7ffdf680b1a53ff71d964b48de /src/core/hle | |
parent | Merge pull request #1634 from DarkLordZach/better-hid-2 (diff) | |
download | yuzu-34e4aaddd95557e8aa3587c4002e506621a3e3a0.tar yuzu-34e4aaddd95557e8aa3587c4002e506621a3e3a0.tar.gz yuzu-34e4aaddd95557e8aa3587c4002e506621a3e3a0.tar.bz2 yuzu-34e4aaddd95557e8aa3587c4002e506621a3e3a0.tar.lz yuzu-34e4aaddd95557e8aa3587c4002e506621a3e3a0.tar.xz yuzu-34e4aaddd95557e8aa3587c4002e506621a3e3a0.tar.zst yuzu-34e4aaddd95557e8aa3587c4002e506621a3e3a0.zip |
Diffstat (limited to 'src/core/hle')
-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: 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; }; |