mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
Check smHasInitialized() in smInitialize().
This commit is contained in:
parent
c14d9baffb
commit
85edf0b826
@ -8,6 +8,8 @@ bool smHasInitialized() {
|
||||
}
|
||||
|
||||
Result smInitialize() {
|
||||
if(smHasInitialized())return 0;
|
||||
|
||||
Result rc = svcConnectToNamedPort(&g_smHandle, "sm:");
|
||||
Handle tmp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user