Skip to content

Commit

Permalink
2.1.3 - No need to have this line
Browse files Browse the repository at this point in the history
  • Loading branch information
crystall1nedev authored Jan 17, 2023
1 parent 7af88bc commit 4c229a2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Natives/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ int main(int argc, char * argv[]) {
setenv("HOME", [NSFileManager.defaultManager URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask]
.lastObject.path.stringByDeletingLastPathComponent.UTF8String, 1);
if(strcmp(getenv("HOME"), "/var/mobile") == 0) {
[fm createDirectoryAtPath:@"/var/mobile/Documents/PojavLauncher withIntermediateDirectories:NO attributes:nil error:nil];
setenv("POJAV_HOME", [NSString stringWithFormat:@"%s/Documents/PojavLauncher", getenv("HOME")].UTF8String, 1);
} else {
setenv("POJAV_HOME", [NSString stringWithFormat:@"%s/Documents", getenv("HOME")].UTF8String, 1);
Expand Down

0 comments on commit 4c229a2

Please sign in to comment.