summaryrefslogtreecommitdiff
path: root/pkg/osx/AppController.m
diff options
context:
space:
mode:
authorSimon Howard2011-05-08 18:29:46 +0000
committerSimon Howard2011-05-08 18:29:46 +0000
commit351c1be33154d12b55e658cfb8f3101858fba63c (patch)
tree7e7a7ba0d4d26380be88ee8852a7bc54ec3d9fab /pkg/osx/AppController.m
parent6e9294e05572d46d3897744d78f4604b412ceb65 (diff)
downloadchocolate-doom-351c1be33154d12b55e658cfb8f3101858fba63c.tar.gz
chocolate-doom-351c1be33154d12b55e658cfb8f3101858fba63c.tar.bz2
chocolate-doom-351c1be33154d12b55e658cfb8f3101858fba63c.zip
Allow IWAD files to be double-clicked in the finder to set the IWAD
configuration. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2334
Diffstat (limited to 'pkg/osx/AppController.m')
-rw-r--r--pkg/osx/AppController.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/osx/AppController.m b/pkg/osx/AppController.m
index a26a7c9e..ba8dae9b 100644
--- a/pkg/osx/AppController.m
+++ b/pkg/osx/AppController.m
@@ -83,6 +83,14 @@
{
NSString *extension;
+ // This may be an IWAD. If so, add it to the IWAD configuration;
+ // don't add it like a PWAD.
+
+ if ([self->launcherManager addIWADPath: fileName])
+ {
+ return YES;
+ }
+
// 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).