diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-01-18 12:48:12 +0100 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2022-01-18 13:09:30 +0100 |
commit | 2ec7c6a6bcc340b6bd196ef8be53bcd6469fe177 (patch) | |
tree | c97fdae5349f5c18bffcb8e5e80832a3104f8c88 /core | |
parent | 366d3930ac96db5561afd23b1063085fccf6dcd6 (diff) |
Replace use of `OS::set_exit_code()` by `SceneTree::quit()` in `EditorNode`
Diffstat (limited to 'core')
-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; |