Skip to content

Commit

Permalink
Implement reloading of GDExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnopek committed Sep 26, 2023
1 parent df0a822 commit 2733a6f
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 @@ -79,6 +79,7 @@ class Engine {

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

static Engine *singleton;

Expand Down Expand Up @@ -136,12 +137,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 2733a6f

Please sign in to comment.