summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/lm/lm.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
index 9dac78536..bf9e98bb5 100644
--- a/src/core/hle/service/lm/lm.cpp
+++ b/src/core/hle/service/lm/lm.cpp
@@ -37,6 +37,11 @@ private:
BitField<24, 8, u32_le> verbosity;
};
u32_le payload_size;
+
+ /// Returns true if this is part of a single log message
+ bool IsSingleMessage() const {
+ return (flags & Flags::IsHead) && (flags & Flags::IsTail);
+ }
};
static_assert(sizeof(MessageHeader) == 0x18, "MessageHeader is incorrect size");
@@ -69,6 +74,10 @@ private:
Memory::ReadBlock(addr, &header, sizeof(MessageHeader));
addr += sizeof(MessageHeader);
+ if (!header.IsSingleMessage()) {
+ UNIMPLEMENTED_MSG("Multi message logs are unimplemeneted");
+ }
+
// Parse out log metadata
u32 line{};
std::string message, filename, function;