From f66bdbe40e09b6c0750ca1fffc008278ee851f57 Mon Sep 17 00:00:00 2001 From: Jens Ayton Date: Mon, 11 Jun 2007 12:56:41 +0000 Subject: [PATCH] Re-disabled ~/.Oolite/AddOns/ in Windows, and added a comment about why. :-) git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1028 127b21dd-08f5-0310-b4b7-95ae10353056 --- src/Core/ResourceManager.m | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Core/ResourceManager.m b/src/Core/ResourceManager.m index 4ccb1f7f..c255d569 100644 --- a/src/Core/ResourceManager.m +++ b/src/Core/ResourceManager.m @@ -98,9 +98,15 @@ static NSMutableDictionary *string_cache; NSString *app_addon_path = @"AddOns"; NSString *appsupport_path = nil; #endif - NSString *nix_path = [[NSHomeDirectory() - stringByAppendingPathComponent:@".Oolite"] - stringByAppendingPathComponent:@"AddOns"]; + NSString *nix_path = nil; +#if !OOLITE_WINDOWS + /* Enabling this path in Windows causes a log message, and it's not + actually useful. + */ + nix_path = [[NSHomeDirectory() + stringByAppendingPathComponent:@".Oolite"] + stringByAppendingPathComponent:@"AddOns"]; +#endif sRootPaths = [[NSArray alloc] initWithObjects:[self builtInPath], app_addon_path, nix_path, appsupport_path, nil]; }