summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorSimon Howard2010-01-09 21:06:31 +0000
committerSimon Howard2010-01-09 21:06:31 +0000
commita4f038a36435b5d4dd726c2f9e3f6a34e0269ec6 (patch)
tree66efcb068972f46db40bf6117b4cfd87e5fede51 /pkg
parent45f543dbe6800827907fd78649d30480a6d0bd31 (diff)
downloadchocolate-doom-a4f038a36435b5d4dd726c2f9e3f6a34e0269ec6.tar.gz
chocolate-doom-a4f038a36435b5d4dd726c2f9e3f6a34e0269ec6.tar.bz2
chocolate-doom-a4f038a36435b5d4dd726c2f9e3f6a34e0269ec6.zip
Clear existing arguments when adding a file.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1795
Diffstat (limited to 'pkg')
-rw-r--r--pkg/osx/LauncherManager.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkg/osx/LauncherManager.m b/pkg/osx/LauncherManager.m
index 52ce7f82..bef0520e 100644
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -62,15 +62,11 @@
}
- (void) addFileToCommandLine: (NSString *) fileName
- forArgument: (NSString *) args
+ forArgument: (NSString *) arg
{
NSString *newCommandLine;
-printf("Add file: %s %s\n", [args UTF8String], [fileName UTF8String]);
- newCommandLine = [self->commandLineArguments stringValue];
- newCommandLine = [newCommandLine stringByAppendingString: @" "];
- newCommandLine = [newCommandLine stringByAppendingString: args];
- newCommandLine = [newCommandLine stringByAppendingString: @" \""];
+ newCommandLine = [arg stringByAppendingString: @" \""];
newCommandLine = [newCommandLine stringByAppendingString: fileName];
newCommandLine = [newCommandLine stringByAppendingString: @"\""];