23 NSString* startingDir = [
fileManager currentDirectoryPath];
25 NSString* primaryResourcesPath = [
startingDir stringByAppendingPathComponent:@"Resources"];
28 NSString* resourcesFolder =
nil;
29 if ([fileManager fileExistsAtPath:primaryResourcesPath isDirectory:&isDir] && isDir) {
30 resourcesFolder = primaryResourcesPath;
33 NSString* fallbackPath = [[
startingDir stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"share/oolite/Resources"];
34 resourcesFolder = [
fallbackPath stringByStandardizingPath];
38 NSString* plistPath = [
resourcesFolder stringByAppendingPathComponent:@"Info-gnustep.plist"];
41 NSDictionary* gnustepPlist = [
NSDictionary dictionaryWithContentsOfFile:plistPath];
42 NSMutableDictionary* workingDict =
nil;
49 NSLog(
@"[Oolite-Core] Warning: Failed to find info-gnustep.plist at calculated path: %@", plistPath);