summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2013-09-15 23:22:38 +0000
committerSimon Howard2013-09-15 23:22:38 +0000
commitd0874f317888f9a05fd6783c9c9466ce83b148ca (patch)
treeae6aa52723e5c667ff79fadf4b5e569a8accde77
parenta1e79a3ba1c5f24c322e09278660ef03a0e0f1f4 (diff)
downloadchocolate-doom-d0874f317888f9a05fd6783c9c9466ce83b148ca.tar.gz
chocolate-doom-d0874f317888f9a05fd6783c9c9466ce83b148ca.tar.bz2
chocolate-doom-d0874f317888f9a05fd6783c9c9466ce83b148ca.zip
Open appropriate CMDLINE file depending on the currently-selected game.
Subversion-branch: /branches/v2-branch Subversion-revision: 2655
-rw-r--r--pkg/osx/LauncherManager.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/osx/LauncherManager.m b/pkg/osx/LauncherManager.m
index a40ac7c9..0f4028eb 100644
--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -355,7 +355,16 @@ static NSString *AppendQuotedFilename(NSString *str, NSString *fileName)
- (void) openCMDLINE: (id) sender
{
- OpenDocumentation("CMDLINE");
+ char *game_name;
+ char filename[32];
+
+ // We need to open the appropriate doc file for the currently
+ // selected game.
+
+ game_name = [self->iwadController getGameName];
+ sprintf(filename, "CMDLINE.%s", game_name);
+
+ OpenDocumentation(filename);
}
- (void) openCOPYING: (id) sender