diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-18 16:57:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-18 16:57:41 +0100 |
commit | b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e (patch) | |
tree | 60601cce55501968a9d6184b6c3272b4304e5238 | |
parent | Merge pull request #84 from lioncash/cmake (diff) | |
parent | lm: Minor logging fix to skip a byte. (diff) | |
download | yuzu-b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e.tar yuzu-b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e.tar.gz yuzu-b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e.tar.bz2 yuzu-b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e.tar.lz yuzu-b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e.tar.xz yuzu-b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e.tar.zst yuzu-b5bc94bce0c8d8169a14ffdc9f51b02f90d76a4e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/lm/lm.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp index 2d0d2fb65..13c9ee3d3 100644 --- a/src/core/hle/service/lm/lm.cpp +++ b/src/core/hle/service/lm/lm.cpp @@ -47,6 +47,7 @@ private: /// Log field type enum class Field : u8 { + Skip = 1, Message = 2, Line = 3, Filename = 4, @@ -85,6 +86,11 @@ private: while (addr < end_addr) { const Field field{static_cast<Field>(Memory::Read8(addr++))}; size_t length{Memory::Read8(addr++)}; + + if (static_cast<Field>(Memory::Read8(addr)) == Field::Skip) { + ++addr; + } + switch (field) { case Field::Message: message = Memory::ReadCString(addr, length); @@ -99,6 +105,7 @@ private: function = Memory::ReadCString(addr, length); break; } + addr += length; } |