diff options
author | Simon Howard | 2011-05-07 23:52:26 +0000 |
---|---|---|
committer | Simon Howard | 2011-05-07 23:52:26 +0000 |
commit | 1fd0ad08ed4840e681e902bc1b9420a1d41619b4 (patch) | |
tree | 8bdc0ff6bf2b54dc283f72a234925fdd3c77a227 /pkg/osx/Execute.m | |
parent | ec74db92724c181962479703092365b332b70b0a (diff) | |
download | chocolate-doom-1fd0ad08ed4840e681e902bc1b9420a1d41619b4.tar.gz chocolate-doom-1fd0ad08ed4840e681e902bc1b9420a1d41619b4.tar.bz2 chocolate-doom-1fd0ad08ed4840e681e902bc1b9420a1d41619b4.zip |
Rework OS X launcher package. Include documentation files within the
application bundle and add a help menu with links. Rework .dmg
generation to generate a file with a "fancy" background image and
overall nicer appearance.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2332
Diffstat (limited to 'pkg/osx/Execute.m')
-rw-r--r-- | pkg/osx/Execute.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/osx/Execute.m b/pkg/osx/Execute.m index ffeddadd..0dcfbb7c 100644 --- a/pkg/osx/Execute.m +++ b/pkg/osx/Execute.m @@ -219,3 +219,13 @@ void OpenTerminalWindow(const char *doomwadpath) withApplication: @"Terminal"]; } +void OpenDocumentation(const char *filename) +{ + NSString *path; + + path = [NSString stringWithFormat: @"%s/Documentation/%s", + executable_path, filename]; + + [[NSWorkspace sharedWorkspace] openFile: path]; +} + |