From 952ee4227d50bdfb5f868152506fc81b69957d66 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 --- .../libstratosphere/include/stratosphere/waitable_manager.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp b/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp index 4f7c1a5ac..7e116a53d 100644 --- a/stratosphere/libstratosphere/include/stratosphere/waitable_manager.hpp +++ b/stratosphere/libstratosphere/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 {