mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
use KERNELRESULT instead of magic
This commit is contained in:
parent
61817e4725
commit
79b3365c04
@ -56,7 +56,7 @@ Result smInitialize(void)
|
||||
return 0;
|
||||
|
||||
Result rc = svcConnectToNamedPort(&g_smHandle, "sm:");
|
||||
while (rc == 0xF201) {
|
||||
while (rc == KERNELRESULT(NotFound)) {
|
||||
svcSleepThread(50000000ul);
|
||||
rc = svcConnectToNamedPort(&g_smHandle, "sm:");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user