Hook in the fgOSExit() function.
This commit is contained in:
parent
2f1e2bc6e9
commit
8ab1e47021
3 changed files with 7 additions and 0 deletions
|
@ -139,6 +139,11 @@ void fgOSMainLoop()
|
|||
glutMainLoop();
|
||||
}
|
||||
|
||||
void fgOSExit(int code)
|
||||
{
|
||||
exit(code);
|
||||
}
|
||||
|
||||
static int CurrentCursor = MOUSE_CURSOR_POINTER;
|
||||
|
||||
int fgGetMouseCursor()
|
||||
|
|
|
@ -46,6 +46,7 @@ void fgOSOpenWindow(int w, int h, int bpp, bool alpha, bool stencil,
|
|||
bool fullscreen);
|
||||
void fgOSFullScreen();
|
||||
void fgOSMainLoop();
|
||||
void fgOSExit(int code);
|
||||
|
||||
void fgSetMouseCursor(int cursor);
|
||||
int fgGetMouseCursor();
|
||||
|
|
|
@ -1447,6 +1447,7 @@ void fgReshape( int width, int height ) {
|
|||
// which happens in the sound manager destructor.
|
||||
void fgExitCleanup() {
|
||||
delete globals;
|
||||
fgOSExit(0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue