Skip to content

Commit

Permalink
revert migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliesSurviving authored Jul 13, 2024
1 parent 098f11b commit 89e1274
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Application/Dopamine/Jailbreak/DOEnvironmentManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ - (void)locateJailbreakRoot
for (NSString *subItem in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:activePrebootPath error:nil]) {
if (subItem.length == 15 && [subItem hasPrefix:@"dopamine-"]) {
randomizedJailbreakPath = [activePrebootPath stringByAppendingPathComponent:subItem];
BOOL installedWinters = [[NSFileManager defaultManager] fileExistsAtPath:[randomizedJailbreakPath stringByAppendingPathComponent:@"procursus/.installed_winters"]];
if (!installedWinters) {
_bootstrapNeedsMigration = YES;
}
else {
break;
}
}
}

Expand Down Expand Up @@ -138,15 +145,11 @@ - (void)locateJailbreakRoot

if (randomizedJailbreakPath) {
NSString *jailbreakRootPath = [randomizedJailbreakPath stringByAppendingPathComponent:@"procursus"];
NSString *JailbreakRootPathWinters = [randomizedJailbreakPath stringByAppendingPathComponent:@"procursus/.installed_winters"];
if ([[NSFileManager defaultManager] fileExistsAtPath:jailbreakRootPath] && [[NSFileManager defaultManager] fileExistsAtPath:JailbreakRootPathWinters]) {
if ([[NSFileManager defaultManager] fileExistsAtPath:jailbreakRootPath]) {
// This attribute serves as the primary source of what the root path is
// Anything else in the jailbreak will get it from here
gSystemInfo.jailbreakInfo.rootPath = strdup(jailbreakRootPath.fileSystemRepresentation);
}
else {
[self deleteBootstrap];
}
}
}
}
Expand Down

0 comments on commit 89e1274

Please sign in to comment.