diff options
author | yexo <yexo@openttd.org> | 2011-12-11 11:47:08 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-12-11 11:47:08 +0000 |
commit | b4fdba2fb3afcb80e419c048504a118ec8376c09 (patch) | |
tree | 036ce622e3bfe2b3176bfe3eecab55f9a943051b /src/os/macosx | |
parent | 0143f00d6fbe33f1de293c4149bf8ad05bac4d8a (diff) | |
download | openttd-b4fdba2fb3afcb80e419c048504a118ec8376c09.tar.xz |
(svn r23490) -Add [FS#2750]: OpenBrowser function to open a browser on major OSes
Diffstat (limited to 'src/os/macosx')
-rw-r--r-- | src/os/macosx/macos.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm index 7c5092403..38ddae8ee 100644 --- a/src/os/macosx/macos.mm +++ b/src/os/macosx/macos.mm @@ -118,6 +118,10 @@ void ShowOSErrorBox(const char *buf, bool system) } } +void OSOpenBrowser(const char *url) +{ + [ [ NSWorkspace sharedWorkspace ] openURL:[ NSURL URLWithString:[ NSString stringWithUTF8String:url ] ] ]; +} /** * Determine and return the current user's locale. |