From bcc495c7b4692a9691f90f57d5cfdf7e60ab0029 Mon Sep 17 00:00:00 2001 From: XorTroll Date: Tue, 3 Aug 2021 16:21:21 +0200 Subject: [PATCH] Fix binlog magic, uncomment code --- .../include/stratosphere/lm/impl/lm_impl_log_types.hpp | 2 +- stratosphere/lm/source/lm_main.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/libstratosphere/include/stratosphere/lm/impl/lm_impl_log_types.hpp b/libraries/libstratosphere/include/stratosphere/lm/impl/lm_impl_log_types.hpp index 2ead240e9..1084a81a7 100644 --- a/libraries/libstratosphere/include/stratosphere/lm/impl/lm_impl_log_types.hpp +++ b/libraries/libstratosphere/include/stratosphere/lm/impl/lm_impl_log_types.hpp @@ -25,7 +25,7 @@ namespace ams::lm::impl { }; struct BinaryLogHeader { - static constexpr u32 Magic = util::FourCC<'p','h','p','h'>::Code; + static constexpr u32 Magic = util::FourCC<'h','p','h','p'>::Code; u32 magic; u8 version; diff --git a/stratosphere/lm/source/lm_main.cpp b/stratosphere/lm/source/lm_main.cpp index 9b1f97fed..4888e91db 100644 --- a/stratosphere/lm/source/lm_main.cpp +++ b/stratosphere/lm/source/lm_main.cpp @@ -148,7 +148,6 @@ void __appExit(void) { setsysExit(); } -/* namespace ams { void *Malloc(size_t size) { @@ -180,7 +179,6 @@ void *__libnx_aligned_alloc(size_t alignment, size_t size) { void __libnx_free(void *mem) { AMS_ABORT("__libnx_free was called"); } -*/ extern std::atomic_bool g_disabled_flush;