Permalink
Browse files

mac gui: better default cache path

  • Loading branch information...
1 parent 0df75bf commit 517556298d0d7ee940b282af0a9b234c790f0e14 @bradallred bradallred committed Jul 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 apple/CocoaWrapper/mac/CocoaWrapper.mm
@@ -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"];
}
}

0 comments on commit 5175562

Please sign in to comment.