summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-06 20:41:56 +0100
committerbunnei <bunneidev@gmail.com>2018-01-06 20:41:56 +0100
commit6f6d9af40857403835a67798a31e61b7483a6cb7 (patch)
treec1bb8c4a5b0801b767160e59c74648060ba50d5f /src/core/hle
parentsvc: Implement WaitSynchronization for a single handle. (diff)
downloadyuzu-6f6d9af40857403835a67798a31e61b7483a6cb7.tar
yuzu-6f6d9af40857403835a67798a31e61b7483a6cb7.tar.gz
yuzu-6f6d9af40857403835a67798a31e61b7483a6cb7.tar.bz2
yuzu-6f6d9af40857403835a67798a31e61b7483a6cb7.tar.lz
yuzu-6f6d9af40857403835a67798a31e61b7483a6cb7.tar.xz
yuzu-6f6d9af40857403835a67798a31e61b7483a6cb7.tar.zst
yuzu-6f6d9af40857403835a67798a31e61b7483a6cb7.zip
Diffstat (limited to '')
-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;