Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mac gui: better default cache path

  • Loading branch information...
commit 517556298d0d7ee940b282af0a9b234c790f0e14 1 parent 0df75bf
Brad Allred bradallred authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  apple/CocoaWrapper/mac/CocoaWrapper.mm
3  apple/CocoaWrapper/mac/CocoaWrapper.mm
View
@@ -99,7 +99,8 @@ - (void)applicationWillFinishLaunching:(NSNotification *) __unused aNotification
[defaults registerDefaults:defaultDict];
if (![defaults stringForKey:@"CachePath"]) {
- NSString* cachePath = [NSString stringWithFormat:@"%@gemrb", NSTemporaryDirectory()];
+ NSArray* paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, NO);
+ NSString* cachePath = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"gemrb"];
[defaults setValue:cachePath forKey:@"CachePath"];
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.