Skip to content

Commit

Permalink
enabled hot reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
Mangonels authored Mar 2, 2024
1 parent 87115b2 commit 174b4f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ target_compile_options(${PROJECT_NAME} PUBLIC
>
)

# enable extension hot swapping
target_compile_definitions(${PROJECT_NAME} PUBLIC
HOT_RELOAD_ENABLED
)

# include directories gdextension library
target_include_directories(${PROJECT_NAME} PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/src"
Expand Down
2 changes: 1 addition & 1 deletion project/roguelite.gdextension
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

entry_symbol = "extension_library_init"
compatibility_minimum = 4.2
reloadable = false
reloadable = true

[libraries]

Expand Down

0 comments on commit 174b4f7

Please sign in to comment.