mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
added fix for onExit => https://torque3d.org/forums/topic/7261-fix-for-onexit-not-called-on-linuxbsd-posix/
This commit is contained in:
parent
6cbc09954a
commit
31481931e8
1 changed files with 7 additions and 1 deletions
|
|
@ -34,6 +34,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "console/engineAPI.h"
|
#include "console/engineAPI.h"
|
||||||
|
#include "core/util/journal/process.h"
|
||||||
#ifndef TORQUE_DEDICATED
|
#ifndef TORQUE_DEDICATED
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -147,6 +148,11 @@ void ProcessControlInit()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void Platform::postQuitMessage(const S32 in_quitVal)
|
void Platform::postQuitMessage(const S32 in_quitVal)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Process::requestShutdown();
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
// if we have a window send a quit event, otherwise just force shutdown
|
// if we have a window send a quit event, otherwise just force shutdown
|
||||||
#if 0
|
#if 0
|
||||||
if (x86UNIXState->windowCreated())
|
if (x86UNIXState->windowCreated())
|
||||||
|
|
@ -234,4 +240,4 @@ void Platform::restartInstance()
|
||||||
*/
|
*/
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue