Closed nedex closed 4 years ago
Nevermind, I just found out about initServices
and exitServices
.
Another question, why is it needed to call smExit
in doWithSmSession
?
I have to call smInitialize
anyways, otherwise the getaddrinfo
function will fail..
initServices already has it initialized. But yeah, you should use the tsl::hlp::doWithSMSession function whenever you need to initialize a service anywhere outside of initServices. This is done so other services don't run out on sm sessions themselves when launched after tesla
Hello there. Since i'm using extra services, like
socket
andnifm
, it would be great if an user could define custom additional services initialization to their overlays, as it happens here (userAppInit
anduserAppExit
): https://github.com/switchbrew/libnx/blob/master/nx/source/runtime/init.c#L102At the time of writing i have to modify the
tesla.hpp
file. Thanks!