diff options
Diffstat (limited to 'pkg/osx/AppController.m')
-rw-r--r-- | pkg/osx/AppController.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/osx/AppController.m b/pkg/osx/AppController.m index 03a5965b..32afd9c4 100644 --- a/pkg/osx/AppController.m +++ b/pkg/osx/AppController.m @@ -46,6 +46,8 @@ { } + self->filesAdded = NO; + return self; } @@ -79,6 +81,17 @@ { NSString *extension; + // If this is the first file added, clear out the existing + // command line. This allows us to select multiple files + // in the finder and open them all together (for TCs, etc). + + if (!self->filesAdded) + { + [self->launcherManager clearCommandLine]; + } + + // Add file with appropriate command line option based on extension: + extension = [fileName pathExtension]; if (![extension caseInsensitiveCompare: @"wad"]) @@ -96,6 +109,8 @@ return NO; } + self->filesAdded = YES; + return YES; } |