ohmtal Posted March 28 Share Posted March 28 (edited) I found this in 3.10 but 4.x code looks the same so I guess it does not work there also. So I share my findings here: The (package) onExit scripts are not called and so the prefs are not saved. On Windows the Process::requestShutdown(); is called so the StandardMainLoop can finish and onExit is called. On Unix/Posix only _exit is executed and then onExit's in script's packages are never called. The solution is simple: I changed it to the way the windows platform code does it: in file x86UNIXProcessControl.cpp (3.10) or file POSIXProcessControl.cpp ( 4.current) add the include: #include "core/util/journal/process.h" and in Platform::postQuitMessage(const S32 in_quitVal) add the code at the beginning of the void: Process::requestShutdown(); return; Maybe in_quitVal should be handled if it's not 0 and forceShutdown(in_quitVal); should be called instead. Not validated so far. But on Windows Platform ignore the in_quitVal, also. Edited March 28 by ohmtal Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.