Skip to content

Commit

Permalink
Merge pull request #80284 from dsnopek/gdextension-hot-reload
Browse files Browse the repository at this point in the history
Implement reloading of GDExtensions
  • Loading branch information
akien-mga committed Sep 26, 2023
2 parents 7980526 + 2733a6f commit 55dfbd7
Show file tree
Hide file tree
Showing 16 changed files with 803 additions and 87 deletions.
7 changes: 7 additions & 0 deletions core/config/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Engine {

bool editor_hint = false;
bool project_manager_hint = false;
bool extension_reloading = false;

static Engine *singleton;

Expand Down Expand Up @@ -140,12 +141,18 @@ class Engine {

_FORCE_INLINE_ void set_project_manager_hint(bool p_enabled) { project_manager_hint = p_enabled; }
_FORCE_INLINE_ bool is_project_manager_hint() const { return project_manager_hint; }

_FORCE_INLINE_ void set_extension_reloading_enabled(bool p_enabled) { extension_reloading = p_enabled; }
_FORCE_INLINE_ bool is_extension_reloading_enabled() const { return extension_reloading; }
#else
_FORCE_INLINE_ void set_editor_hint(bool p_enabled) {}
_FORCE_INLINE_ bool is_editor_hint() const { return false; }

_FORCE_INLINE_ void set_project_manager_hint(bool p_enabled) {}
_FORCE_INLINE_ bool is_project_manager_hint() const { return false; }

_FORCE_INLINE_ void set_extension_reloading_enabled(bool p_enabled) {}
_FORCE_INLINE_ bool is_extension_reloading_enabled() const { return false; }
#endif

Dictionary get_version_info() const;
Expand Down
Loading

0 comments on commit 55dfbd7

Please sign in to comment.