29 #define GL_GLEXT_LEGACY // AppKit.h include pulls in gl.h already
30 #import <AppKit/AppKit.h>
31 #import <Foundation/Foundation.h>
32 #include "../../idlib/precompiled.h"
33 #include "../sys_local.h"
41 static bool quit_spamguard =
false;
43 if ( quit_spamguard ) {
44 common->
DPrintf(
"Sys_OpenURL: already in a doexit sequence, ignoring %s\n", url );
51 [[ NSWorkspace sharedWorkspace] openURL: [ NSURL URLWithString:
52 [ NSString stringWithCString: url ] ] ];
55 quit_spamguard =
true;
66 common->
Printf(
"TODO: Sys_DoStartProcess %s\n", exeName );
76 NSString *
string = [ [ NSBundle mainBundle ] localizedStringForKey:[ NSString stringWithCString: key ]
77 value:@"No translation" table:nil];
78 return [string cString];
const char * OSX_GetLocalizedString(const char *key)
virtual void BufferCommandText(cmdExecution_t exec, const char *text)=0
void Sys_DoStartProcess(const char *exeName, bool dofork=true)
virtual void Printf(const char *fmt,...) id_attribute((format(printf
virtual void OpenURL(const char *url, bool quit)
virtual void DPrintf(const char *fmt,...) id_attribute((format(printf