shithub: choc

Download patch

ref: d0874f317888f9a05fd6783c9c9466ce83b148ca
parent: a1e79a3ba1c5f24c322e09278660ef03a0e0f1f4
author: Simon Howard <[email protected]>
date: Sun Sep 15 19:22:38 EDT 2013

Open appropriate CMDLINE file depending on the currently-selected game.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2655

--- a/pkg/osx/LauncherManager.m
+++ b/pkg/osx/LauncherManager.m
@@ -355,7 +355,16 @@
 
 - (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