From f10599bbdbdecb895ae94efa5b6b8562f288dcba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 2 Apr 2025 09:05:51 +0200 Subject: [PATCH] Warning fix (though no actual semantic change) --- Core/HLE/KernelThreadDebugInterface.h | 2 +- Core/HLE/sceKernelThread.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/KernelThreadDebugInterface.h b/Core/HLE/KernelThreadDebugInterface.h index 4fbd9d54ca..13cfb3fad8 100644 --- a/Core/HLE/KernelThreadDebugInterface.h +++ b/Core/HLE/KernelThreadDebugInterface.h @@ -25,7 +25,7 @@ struct PSPThreadContext; class KernelThreadDebugInterface : public DebugInterface { public: - KernelThreadDebugInterface(PSPThreadContext &t) : ctx(t) {} + KernelThreadDebugInterface(PSPThreadContext *t) : ctx(*t) {} u32 GetGPR32Value(int reg) const override { return ctx.r[reg]; } u32 GetHi() const override { return ctx.hi; } diff --git a/Core/HLE/sceKernelThread.h b/Core/HLE/sceKernelThread.h index 504de7c2aa..a9cff92d5e 100644 --- a/Core/HLE/sceKernelThread.h +++ b/Core/HLE/sceKernelThread.h @@ -209,7 +209,7 @@ const char *ThreadStatusToString(ThreadStatus status); class PSPThread : public KernelObject { public: - PSPThread() : debug(context) {} + PSPThread() : debug(&context) {} const char *GetName() override { return nt.name; } const char *GetTypeName() override { return GetStaticTypeName(); } static const char *GetStaticTypeName() { return "Thread"; }