Invert output from RootHelper

This commit is contained in:
Dhinak G 2023-12-21 23:21:26 -05:00
parent d502576e1f
commit f1f42778d8
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -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);