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();
|
glutMainLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fgOSExit(int code)
|
||||||
|
{
|
||||||
|
exit(code);
|
||||||
|
}
|
||||||
|
|
||||||
static int CurrentCursor = MOUSE_CURSOR_POINTER;
|
static int CurrentCursor = MOUSE_CURSOR_POINTER;
|
||||||
|
|
||||||
int fgGetMouseCursor()
|
int fgGetMouseCursor()
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue