summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorSimon Howard2010-01-15 19:29:28 +0000
committerSimon Howard2010-01-15 19:29:28 +0000
commit6e0df0d01676cec59caaafa2cea3910c5a9b51e0 (patch)
treeee1ded27450980593a68fae8b8ea8fac0916a6db /pkg
parent893c8dbe922b5ee6ac14c3df3b5020817b6797b3 (diff)
downloadchocolate-doom-6e0df0d01676cec59caaafa2cea3910c5a9b51e0.tar.gz
chocolate-doom-6e0df0d01676cec59caaafa2cea3910c5a9b51e0.tar.bz2
chocolate-doom-6e0df0d01676cec59caaafa2cea3910c5a9b51e0.zip
Don't open the configuration window when the launcher is first run;
display an error message if the user tries to launch the game without an IWAD selected. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1817
Diffstat (limited to 'pkg')
-rw-r--r--pkg/osx/IWADController.m7
-rw-r--r--pkg/osx/LauncherManager.m15
2 files changed, 12 insertions, 10 deletions
diff --git a/pkg/osx/IWADController.m b/pkg/osx/IWADController.m
index 783ee38f..a7730cc7 100644
--- a/pkg/osx/IWADController.m
+++ b/pkg/osx/IWADController.m
@@ -256,17 +256,12 @@ static NSString *IWADFilenames[NUM_IWAD_TYPES + 1] =
[self setIWADConfig];
- // Populate the dropdown IWAD list, and open the configuration
- // dialog if not yet configured.
+ // Populate the dropdown IWAD list.
if ([self setDropdownList])
{
[self setDropdownSelection];
}
- else
- {
- [self openConfigWindow: nil];
- }
}
// Set the DOOMWADPATH environment variable to contain the path to each
diff --git a/pkg/osx/LauncherManager.m b/pkg/osx/LauncherManager.m
index 26684811..0d0ab4ea 100644
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -284,12 +284,19 @@ static NSString *AppendQuotedFilename(NSString *str, NSString *fileName)
iwad = [self->iwadController getIWADLocation];
args = [self->commandLineArguments stringValue];
- if (iwad != nil)
+ if (iwad == nil)
{
- ExecuteProgram(PACKAGE_TARNAME, [iwad UTF8String],
- [args UTF8String]);
- [NSApp terminate:sender];
+ NSRunAlertPanel(@"No IWAD selected",
+ @"You have not selected an IWAD (game) file.\n\n"
+ "You must configure and select a valid IWAD file "
+ "in order to launch the game.",
+ @"OK", nil, nil);
+ return;
}
+
+ ExecuteProgram(PACKAGE_TARNAME, [iwad UTF8String],
+ [args UTF8String]);
+ [NSApp terminate:sender];
}
- (void) runSetup: (id)sender