diff options
Diffstat (limited to 'pkg/osx')
-rw-r--r-- | pkg/osx/LauncherManager.m | 11 |
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 |