mirror of https://github.com/opa334/TrollStore.git
Invert output from RootHelper
This commit is contained in:
parent
d502576e1f
commit
f1f42778d8
|
@ -1517,12 +1517,13 @@ int MAIN_NAME(int argc, char *argv[], char *envp[])
|
||||||
}
|
}
|
||||||
else if([cmd isEqualToString:@"check-dev-mode"])
|
else if([cmd isEqualToString:@"check-dev-mode"])
|
||||||
{
|
{
|
||||||
ret = checkDeveloperMode();
|
// switch the result, so 0 is enabled, and 1 is disabled/error
|
||||||
|
ret = !checkDeveloperMode();
|
||||||
}
|
}
|
||||||
else if([cmd isEqualToString:@"arm-dev-mode"])
|
else if([cmd isEqualToString:@"arm-dev-mode"])
|
||||||
{
|
{
|
||||||
// assumes that checkDeveloperMode() has already been called
|
// assumes that checkDeveloperMode() has already been called
|
||||||
ret = armDeveloperMode(NULL);
|
ret = !armDeveloperMode(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
NSLog(@"trollstorehelper returning %d", ret);
|
NSLog(@"trollstorehelper returning %d", ret);
|
||||||
|
|
Loading…
Reference in New Issue