From a0c5246b5cfd5d4714aa7b70d281ba20117cca59 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 5 Nov 2018 22:56:04 -0800 Subject: [PATCH] libstrat: update curthreadhandle for libnx 1.5.0 --- include/stratosphere/waitable_manager.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/stratosphere/waitable_manager.hpp b/include/stratosphere/waitable_manager.hpp index 4f7c1a5a..7e116a53 100644 --- a/include/stratosphere/waitable_manager.hpp +++ b/include/stratosphere/waitable_manager.hpp @@ -29,8 +29,7 @@ #include "scope_guard.hpp" static inline Handle GetCurrentThreadHandle() { - /* TODO: Wait for libnx to add a way for me to call getThreadVars() */ - return *((Handle *)((uintptr_t)armGetTls() + 0x1E4)); + return threadGetCurHandle(); } struct DefaultManagerOptions {