summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-20 03:40:17 +0100
committerGitHub <noreply@github.com>2018-11-20 03:40:17 +0100
commite9265ac598d65a41e5d62103e48b7786e7cd64d6 (patch)
treeebd11931b5b515e567d7d85354a3619b6c3ca55e /src/core/hle
parentMerge pull request #1738 from lioncash/res-limit (diff)
parentlm: Implement SetDestination by doing nothing (diff)
downloadyuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar
yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar.gz
yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar.bz2
yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar.lz
yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar.xz
yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.tar.zst
yuzu-e9265ac598d65a41e5d62103e48b7786e7cd64d6.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/lm/lm.cpp13
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;
};