summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2018-01-09 15:14:21 -0500
committerGravatar Subv2018-01-10 00:41:29 -0500
commit188feba4576d0ff3e930767cefb27ac9af2b716f (patch)
treeb1e16c6f400d3574093320ee534e528a0a40a758 /src
parentSVC: Fixed WaitSynchronization with multiple handles when none is immediately... (diff)
downloadyuzu-188feba4576d0ff3e930767cefb27ac9af2b716f.tar.gz
yuzu-188feba4576d0ff3e930767cefb27ac9af2b716f.tar.xz
yuzu-188feba4576d0ff3e930767cefb27ac9af2b716f.zip
Services: Allow lm to log single-character messages.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/lm/lm.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
index edbee39f5..f853a6ec6 100644
--- a/src/core/hle/service/lm/lm.cpp
+++ b/src/core/hle/service/lm/lm.cpp
@@ -75,7 +75,8 @@ private:
75 addr += sizeof(MessageHeader); 75 addr += sizeof(MessageHeader);
76 76
77 if (!header.IsSingleMessage()) { 77 if (!header.IsSingleMessage()) {
78 UNIMPLEMENTED_MSG("Multi message logs are unimplemeneted"); 78 LOG_WARNING(Service, "Multi message logs are unimplemeneted");
79 return;
79 } 80 }
80 81
81 // Parse out log metadata 82 // Parse out log metadata
@@ -102,15 +103,10 @@ private:
102 } 103 }
103 104
104 // Empty log - nothing to do here 105 // Empty log - nothing to do here
105 if (message.size() <= 1) { 106 if (message.empty()) {
106 return; 107 return;
107 } 108 }
108 109
109 // Remove trailing new line
110 if (message[message.length() - 1] == '\n') {
111 message.erase(message.length() - 1);
112 }
113
114 // Format a nicely printable string out of the log metadata 110 // Format a nicely printable string out of the log metadata
115 std::string output; 111 std::string output;
116 if (filename.size()) { 112 if (filename.size()) {