1
0
Fork 0

Hook in the fgOSExit() function.

This commit is contained in:
curt 2004-04-25 02:17:03 +00:00
parent 2f1e2bc6e9
commit 8ab1e47021
3 changed files with 7 additions and 0 deletions

View file

@ -139,6 +139,11 @@ void fgOSMainLoop()
glutMainLoop(); glutMainLoop();
} }
void fgOSExit(int code)
{
exit(code);
}
static int CurrentCursor = MOUSE_CURSOR_POINTER; static int CurrentCursor = MOUSE_CURSOR_POINTER;
int fgGetMouseCursor() int fgGetMouseCursor()

View file

@ -46,6 +46,7 @@ void fgOSOpenWindow(int w, int h, int bpp, bool alpha, bool stencil,
bool fullscreen); bool fullscreen);
void fgOSFullScreen(); void fgOSFullScreen();
void fgOSMainLoop(); void fgOSMainLoop();
void fgOSExit(int code);
void fgSetMouseCursor(int cursor); void fgSetMouseCursor(int cursor);
int fgGetMouseCursor(); int fgGetMouseCursor();

View file

@ -1447,6 +1447,7 @@ void fgReshape( int width, int height ) {
// which happens in the sound manager destructor. // which happens in the sound manager destructor.
void fgExitCleanup() { void fgExitCleanup() {
delete globals; delete globals;
fgOSExit(0);
} }