1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-01-18 13:05:42 +08:00

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

View File

@ -1517,12 +1517,13 @@ int MAIN_NAME(int argc, char *argv[], char *envp[])
}
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"])
{
// assumes that checkDeveloperMode() has already been called
ret = armDeveloperMode(NULL);
ret = !armDeveloperMode(NULL);
}
NSLog(@"trollstorehelper returning %d", ret);