-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Introduce App Directory Path (#572)"
This reverts commit 7710d91.
- Loading branch information
1 parent
a91ad6f
commit b84d742
Showing
16 changed files
with
70 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#import <Foundation/Foundation.h> | ||
int main(void) { | ||
NSString *appSupportDir = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) lastObject]; | ||
//If there isn't an App Support Directory yet ... | ||
if (![[NSFileManager defaultManager] fileExistsAtPath:appSupportDir isDirectory:NULL]) { | ||
NSError *error = nil; | ||
//Create one | ||
if (![[NSFileManager defaultManager] createDirectoryAtPath:appSupportDir withIntermediateDirectories:YES attributes:nil error:&error]) { | ||
NSLog(@"%@", error.localizedDescription); | ||
} | ||
else { | ||
// *** OPTIONAL *** Mark the directory as excluded from iCloud backups | ||
NSURL *url = [NSURL fileURLWithPath:appSupportDir]; | ||
if (![url setResourceValue:@YES | ||
forKey:NSURLIsExcludedFromBackupKey | ||
error:&error]) | ||
{ | ||
NSLog(@"Error excluding %@ from backup %@", url.lastPathComponent, error.localizedDescription); | ||
} | ||
else { | ||
NSLog(@"Yay"); | ||
} | ||
} | ||
} | ||
printf("%s\n", [appSupportDir UTF8String]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
APPPATH="${0%/*}" | ||
cd "${APPPATH}" | ||
APPPATH=$(pwd) | ||
APPSUPPORT=$(./appsupport) | ||
mkdir -p "${APPSUPPORT}/com.shipofharkinian.soh" | ||
cd "${APPSUPPORT}/com.shipofharkinian.soh" | ||
cp "${APPPATH}/oot.otr" . | ||
${APPPATH}/soh |
Oops, something went wrong.