30 #import "../../idlib/precompiled.h"
38 #import <AppKit/AppKit.h>
61 int main(
int argc,
const char *argv[]) {
62 return NSApplicationMain(argc, argv);
93 int (*systemcalls)(
int, ...) )
102 NSPasteboard *pasteboard;
103 NSArray *pasteboardTypes;
105 pasteboard = [NSPasteboard generalPasteboard];
106 pasteboardTypes = [pasteboard types];
107 if ([pasteboardTypes containsObject:NSStringPboardType]) {
108 NSString *clipboardString;
110 clipboardString = [pasteboard stringForType:NSStringPboardType];
111 if (clipboardString && [clipboardString
length] > 0) {
112 return strdup([clipboardString cString]);
159 NSString *formattedString;
163 va_start(argptr,error);
164 formattedString = [[NSString alloc] initWithFormat:[NSString stringWithCString:error] arguments:argptr];
167 NSLog(
@"Sys_Error: %@", formattedString);
168 NSRunAlertPanel(
@"DOOM Error", formattedString, nil, nil, nil);
176 [NSApp terminate:nil];
207 fputs(
"\033[0m", stdout);
213 if(Q_IsColorString(scan)) {
214 index = ColorIndex(scan[1]);
218 fwrite(text, scan - text, 1, stdout);
222 fputs(ansiColors[index], stdout);
236 fputs(
"\033[0m", stdout);
void Sys_OutputDebugString(const char *text)
void Sys_BeginProfiling(void)
void Sys_ShutdownInput(void)
void EditorPrintConsole(const char *test)
int main(int argc, const char *argv[])
void Sys_Sleep(const int time)
void Sys_EndProfiling(void)
void * Sys_LoadDll(const char *name, int(**entryPoint)(int,...), int(*systemcalls)(int,...))
void Sys_UnloadDll(void *dllHandle)
void OutputDebugString(const char *text)
char * FS_BuildOSPath(const char *base, const char *game, const char *qpath)
void Sys_Print(const char *msg)
char * Sys_GetCurrentUser(void)
virtual void Printf(const char *fmt,...) id_attribute((format(printf
GLsizei const GLcharARB const GLint * length
void Sys_Error(const char *error,...)
const char * macosx_scanForLibraryDirectory(void)
char * Sys_GetClipboardData(void)