diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-18 14:48:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 14:48:55 +0100 |
commit | fd5fb7d64adefb40d8de94236bf41938aa020d21 (patch) | |
tree | b419259fca80c41db127327bd85a0894cf5e1f23 /core/os | |
parent | ca93518ebbdc94575a9a9d0e379712bbd7f64749 (diff) | |
parent | 2ec7c6a6bcc340b6bd196ef8be53bcd6469fe177 (diff) |
Merge pull request #56899 from touilleMan/fix-editor_node-set_exit_code
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/os.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h index 6b4e2798bd..36d85da70b 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -295,6 +295,9 @@ public: virtual void debug_break(); virtual int get_exit_code() const; + // `set_exit_code` should only be used from `SceneTree` (or from a similar + // level, e.g. from the `Main::start` if leaving without creating a `SceneTree`). + // For other components, `SceneTree.quit()` should be used instead. virtual void set_exit_code(int p_code); virtual int get_processor_count() const; |