UFO: Alien Invasion
Loading...
Searching...
No Matches
osx_main.cpp File Reference

main function and system functions More...

#include <CoreFoundation/CoreFoundation.h>
#include <SDL_main.h>
#include <fcntl.h>
#include <sys/param.h>
#include <unistd.h>
#include "../../common/common.h"
Include dependency graph for osx_main.cpp:

Go to the source code of this file.

Functions

static void SetWorkingDirectory ()
 Sets the current working directory to the top of the application bundle hierarchy.
int main (int argc, char **argv)
 The entry point for OSX server and client.

Detailed Description

main function and system functions

Definition in file osx_main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

The entry point for OSX server and client.

Inits the the program and calls Qcommon in an infinite loop. FIXME: While this works, infinite loops are bad; one should not rely on exit() call; the program should be designed to fall through the bottom.

Definition at line 62 of file osx_main.cpp.

References Qcommon_Frame(), Qcommon_Init(), SetWorkingDirectory(), and Sys_ConsoleInit().

◆ SetWorkingDirectory()

void SetWorkingDirectory ( )
static

Sets the current working directory to the top of the application bundle hierarchy.

Definition at line 38 of file osx_main.cpp.

References Com_DPrintf(), Com_Printf(), and DEBUG_SYSTEM.

Referenced by main().