Consider the following scenario:
-Let's say a program monitors the game waiting for an exit code to return after the game closes. If the game returns 0 (the default code for exiting normally (no issues)) the program thinks that the game closed successfully.
-In one of the game sessions, the game crashes (let's say it crashed from a script). It returns the exit code (say, 80) and the program thinks that the game crashed due to a script. It then shows a crash report window.
So my question is: Does the game engine returns an exit code when it crashes? If yes, which are the specific ones? If not, is there a way to catch the crashes?
-Let's say a program monitors the game waiting for an exit code to return after the game closes. If the game returns 0 (the default code for exiting normally (no issues)) the program thinks that the game closed successfully.
-In one of the game sessions, the game crashes (let's say it crashed from a script). It returns the exit code (say, 80) and the program thinks that the game crashed due to a script. It then shows a crash report window.
So my question is: Does the game engine returns an exit code when it crashes? If yes, which are the specific ones? If not, is there a way to catch the crashes?