libstrat: update curthreadhandle for libnx 1.5.0

This commit is contained in:
Michael Scire 2018-11-05 22:56:04 -08:00
parent 9142e90a04
commit 952ee4227d

View file

@ -29,8 +29,7 @@
#include "scope_guard.hpp" #include "scope_guard.hpp"
static inline Handle GetCurrentThreadHandle() { static inline Handle GetCurrentThreadHandle() {
/* TODO: Wait for libnx to add a way for me to call getThreadVars() */ return threadGetCurHandle();
return *((Handle *)((uintptr_t)armGetTls() + 0x1E4));
} }
struct DefaultManagerOptions { struct DefaultManagerOptions {