added support for other cfg service names

This commit is contained in:
smea 2015-10-27 10:59:52 -07:00
parent bba6b90ba0
commit af34e85ab2

View File

@ -8,7 +8,14 @@ static Handle CFGU_handle = 0;
Result initCfgu() Result initCfgu()
{ {
return srvGetServiceHandle(&CFGU_handle, "cfg:u"); Result ret;
// cfg:i has the most commands, then cfg:s, then cfg:u
ret = srvGetServiceHandle(&CFGU_handle, "cfg:i");
if(ret) ret = srvGetServiceHandle(&CFGU_handle, "cfg:s");
if(ret) ret = srvGetServiceHandle(&CFGU_handle, "cfg:u");
return ret;
} }
Result exitCfgu() Result exitCfgu()