From 196cc8291342770a0af7671668460f5d33cff3c0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 5 Mar 2019 21:52:19 -0500 Subject: yuzu/debugger/wait_tree: Remove use of global CurrentProcess accessor We already have the thread instance that was created under the current process, so we can just pass the handle table of it along to retrieve the owner of the mutex. --- src/yuzu/debugger/wait_tree.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/yuzu/debugger/wait_tree.h') diff --git a/src/yuzu/debugger/wait_tree.h b/src/yuzu/debugger/wait_tree.h index 365c3dbfe..62886609d 100644 --- a/src/yuzu/debugger/wait_tree.h +++ b/src/yuzu/debugger/wait_tree.h @@ -17,6 +17,7 @@ class EmuThread; namespace Kernel { +class HandleTable; class ReadableEvent; class WaitObject; class Thread; @@ -72,7 +73,7 @@ public: class WaitTreeMutexInfo : public WaitTreeExpandableItem { Q_OBJECT public: - explicit WaitTreeMutexInfo(VAddr mutex_address); + explicit WaitTreeMutexInfo(VAddr mutex_address, const Kernel::HandleTable& handle_table); ~WaitTreeMutexInfo() override; QString GetText() const override; -- cgit v1.2.3