Commit aaec0d4e authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed crashlog lookup on Mountain Lion

parent 0849d6e5
......@@ -1878,7 +1878,11 @@ unsigned int CocoaKeyToVLC( unichar i_key )
- (NSString *)latestCrashLogPathPreviouslySeen:(BOOL)previouslySeen
{
NSString * crashReporter = [@"~/Library/Logs/CrashReporter" stringByExpandingTildeInPath];
NSString * crashReporter;
if( OSX_MOUNTAIN_LION )
crashReporter = [@"~/Library/Logs/DiagnosticReports" stringByExpandingTildeInPath];
else
crashReporter = [@"~/Library/Logs/CrashReporter" stringByExpandingTildeInPath];
NSDirectoryEnumerator *direnum = [[NSFileManager defaultManager] enumeratorAtPath:crashReporter];
NSString *fname;
NSString * latestLog = nil;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment