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