Skip to content

Commit

Permalink
aaaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliesSurviving authored May 12, 2024
1 parent 8c4e5c4 commit 0c29ed2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Application/Dopamine/Jailbreak/DOJailbreaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,6 @@ - (NSError *)finalizeBootstrapIfNeeded
return [[DOEnvironmentManager sharedManager] finalizeBootstrap];
}

- (void *)JailbreakCompleteAlert
{
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:DOLocalizedString(@"Test_Reboot_Title") message:DOLocalizedString(@"Test_Reboot_Message") preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *rebootAction = [UIAlertAction actionWithTitle:DOLocalizedString(@"Test_Reboot_Close") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
exit(0);
}];
}

- (void)runWithError:(NSError **)errOut didRemoveJailbreak:(BOOL*)didRemove showLogs:(BOOL *)showLogs
{
Expand Down Expand Up @@ -599,8 +592,8 @@ - (void)runWithError:(NSError **)errOut didRemoveJailbreak:(BOOL*)didRemove show
if (*errOut) {
*showLogs = NO;
return;
*errOut = [self JailbreakCompleteAlert];
if (*errOut) return;

[[DOUIManager sharedInstance] JailbreakCompleteAlert];
}


Expand Down
9 changes: 9 additions & 0 deletions Application/Dopamine/UI/DOUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,15 @@ - (void)shareLogRecordFromView:(UIView *)sourceView
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:activityViewController animated:YES completion:nil];
}

- (void *)JailbreakCompleteAlert
{
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:DOLocalizedString(@"Test_Reboot_Title") message:DOLocalizedString(@"Test_Reboot_Message") preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *rebootAction = [UIAlertAction actionWithTitle:DOLocalizedString(@"Test_Reboot_Close") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
exit(0);
}];
}


- (void)completeJailbreak
{
if (!self.logView)
Expand Down

0 comments on commit 0c29ed2

Please sign in to comment.