summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2020-07-08 08:04:36 -0500
committerFivePixels <o5pxels@gmail.com>2020-07-08 08:04:36 -0500
commitbe09e9c002b0ff46aa122ff7aca88b7a5def2527 (patch)
tree269a6a5ad7f6a0092367c4ef1d809f4adbbd583f
parenta692718a2ae3d46db6c63b68a924f66f671ba004 (diff)
downloadintemperate-be09e9c002b0ff46aa122ff7aca88b7a5def2527.tar.xz
intemperate-be09e9c002b0ff46aa122ff7aca88b7a5def2527.zip
Update alerts in called functionsHEADmaster
-rw-r--r--Tweak.x20
-rw-r--r--packages/com.5px.intemperate_1.0_iphoneos-arm.debbin28302 -> 28342 bytes
2 files changed, 13 insertions, 7 deletions
diff --git a/Tweak.x b/Tweak.x
index c8b2d0a..30bd6e6 100644
--- a/Tweak.x
+++ b/Tweak.x
@@ -20,12 +20,14 @@ static void updatePrefs() {
%group latestSyntax
%hook SBThermalController
-(void)_setBlocked:(BOOL)arg1 {
- UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Intemperate" message:@"Your device attempted to lockout your device due to it's thermal monitoring. Proceed with caution." preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *close = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
- }];
- [alert addAction:close];
- [[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:alert animated:YES completion:nil];
- arg1 = NO;
+ if (arg1 == YES) {
+ UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Intemperate" message:@"Your device attempted to lockout your device due to it's thermal monitoring. Proceed with caution." preferredStyle:UIAlertControllerStyleAlert];
+ UIAlertAction *close = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
+ }];
+ [alert addAction:close];
+ [[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:alert animated:YES completion:nil];
+ arg1 = NO;
+ }
%orig(arg1);
}
-(BOOL)isThermalBlocked {
@@ -43,7 +45,11 @@ static void updatePrefs() {
%group previousSyntax
%hook SBThermalController
-(void)showThermalAlertIfNecessary {
- // Do nothing. I don't want a thermal alert.
+ UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Intemperate" message:@"Your device attempted to lockout your device due to it's thermal monitoring. Proceed with caution." preferredStyle:UIAlertControllerStyleAlert];
+ UIAlertAction *close = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
+ }];
+ [alert addAction:close];
+ [[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:alert animated:YES completion:nil];
}
%end
%end
diff --git a/packages/com.5px.intemperate_1.0_iphoneos-arm.deb b/packages/com.5px.intemperate_1.0_iphoneos-arm.deb
index 817565f..5a926ce 100644
--- a/packages/com.5px.intemperate_1.0_iphoneos-arm.deb
+++ b/packages/com.5px.intemperate_1.0_iphoneos-arm.deb
Binary files differ