mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-17 04:27:33 +01:00
lm: Assert on unsupported multi-message.
This commit is contained in:
parent
0e978bdd50
commit
6f6d9af408
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user