From ba71d9b555db138a9655d7daba9fe16b06a2bac7 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 3 Apr 2021 18:03:44 -0700 Subject: [PATCH] Deflt: Trigger memchecks / log source of writes. --- Core/HLE/sceDeflt.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Core/HLE/sceDeflt.cpp b/Core/HLE/sceDeflt.cpp index 2a7e0cc729..b2c29ea2f1 100644 --- a/Core/HLE/sceDeflt.cpp +++ b/Core/HLE/sceDeflt.cpp @@ -18,6 +18,7 @@ #include "zlib.h" #include "Common/CommonTypes.h" +#include "Core/Debugger/MemBlockInfo.h" #include "Core/HLE/HLE.h" #include "Core/HLE/FunctionWrappers.h" #include "Core/HLE/sceDeflt.h" @@ -55,6 +56,11 @@ static int CommonDecompress(int windowBits, u32 OutBuffer, int OutBufferLength, uLong crc = crc32(0L, Z_NULL, 0); *crc32Addr = crc32(crc, outBufferPtr, stream.total_out); } + + const std::string tag = "sceDeflt/" + GetMemWriteTagAt(InBuffer, stream.total_in); + NotifyMemInfo(MemBlockFlags::READ, InBuffer, stream.total_in, tag.c_str(), tag.size()); + NotifyMemInfo(MemBlockFlags::WRITE, OutBuffer, stream.total_out, tag.c_str(), tag.size()); + return hleLogSuccessI(HLE, stream.total_out); }