Commit 9ce7bc8e authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed crashlog lookup on Mountain Lion

(cherry picked from commit aaec0d4e1d1331645a61419345534498e976fe2d)
parent fc6d6a0e
...@@ -1865,7 +1865,11 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1865,7 +1865,11 @@ unsigned int CocoaKeyToVLC( unichar i_key )
- (NSString *)latestCrashLogPathPreviouslySeen:(BOOL)previouslySeen - (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]; NSDirectoryEnumerator *direnum = [[NSFileManager defaultManager] enumeratorAtPath:crashReporter];
NSString *fname; NSString *fname;
NSString * latestLog = nil; 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