From d441a6aefadda78bb0bb02552716cbede38fe662 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 29 Dec 2019 16:55:16 +0100 Subject: Print a warning message if `OS.exit_code` is set to a non-portable value This also improves the related documentation. --- doc/classes/OS.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 54b4f3df64..265e87eba3 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -905,7 +905,7 @@ The current screen index (starting from 0). - The exit code passed to the OS when the main loop exits. + The exit code passed to the OS when the main loop exits. By convention, an exit code of [code]0[/code] indicates success whereas a non-zero exit code indicates an error. For portability reasons, the exit code should be set between 0 and 125 (inclusive). If [code]true[/code], the engine tries to keep the screen on while the game is running. Useful on mobile. -- cgit v1.2.3