[73300] users/ryandesign/PCLauncher/PreferencesWindowController.mm
ryandesign at macports.org
ryandesign at macports.org
Tue Nov 9 14:29:47 PST 2010
Revision: 73300
http://trac.macports.org/changeset/73300
Author: ryandesign at macports.org
Date: 2010-11-09 14:29:44 -0800 (Tue, 09 Nov 2010)
Log Message:
-----------
Only create the preferences directory if we're going to write a file in it
Modified Paths:
--------------
users/ryandesign/PCLauncher/PreferencesWindowController.mm
Modified: users/ryandesign/PCLauncher/PreferencesWindowController.mm
===================================================================
--- users/ryandesign/PCLauncher/PreferencesWindowController.mm 2010-11-09 20:21:14 UTC (rev 73299)
+++ users/ryandesign/PCLauncher/PreferencesWindowController.mm 2010-11-09 22:29:44 UTC (rev 73300)
@@ -66,6 +66,7 @@
}
- (void)save {
+ if (!dirty) return;
NSString *initDir = [graphicsIniFilename stringByDeletingLastPathComponent];
if (![[NSFileManager defaultManager] fileExistsAtPath:initDir]) {
NSString *uruLiveDir = [initDir stringByDeletingLastPathComponent];
@@ -74,7 +75,6 @@
}
[[NSFileManager defaultManager] createDirectoryAtPath:initDir attributes:nil];
}
- if (!dirty) return;
plEncryptedStream stream(PlasmaVer::pvMoul);
if (!stream.open([graphicsIniFilename fileSystemRepresentation], fmCreate, plEncryptedStream::kEncXtea)) return;
[graphicsSettings setValue:[NSString stringWithFormat:@"%.0f", ([anisotropicFilteringSlider intValue] > 0 ? exp2([anisotropicFilteringSlider doubleValue]) : 0)] forKey:@"Graphics.AnisotropicLevel"];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101109/b083a7ee/attachment.html>
More information about the macports-changes
mailing list