Use nifmInitialize/nifmExit in netloader.c, since netstatusGetDetails() uses nifm directly and latest libnx no longer uses nifm in socket init/exit.

This commit is contained in:
yellows8 2019-11-18 12:06:54 -05:00
parent a150cbe167
commit 4ecd7401b6
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -701,6 +701,10 @@ Result netloaderInit(void) {
#ifdef __SWITCH__
rc = socketInitializeDefault();
if (R_SUCCEEDED(rc)) {
rc = nifmInitialize(NifmServiceType_User);
if (R_FAILED(rc)) socketExit();
}
#endif
#ifdef __WIN32__
@ -727,6 +731,7 @@ void netloaderExit(void) {
mtx_destroy(&netloader_mtx);
#ifdef __SWITCH__
nifmExit();
socketExit();
#endif