From 19a091c9888097e4268fbdecf3cfcad70a31b548 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Mar 2024 19:09:44 +0100 Subject: [PATCH] the actual changes --- CMakeLists.txt | 5 +++++ project/roguelite.gdextension | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9784ce..b4c6385 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" diff --git a/project/roguelite.gdextension b/project/roguelite.gdextension index 50d4929..9dc0446 100644 --- a/project/roguelite.gdextension +++ b/project/roguelite.gdextension @@ -2,7 +2,7 @@ entry_symbol = "extension_library_init" compatibility_minimum = 4.2 -reloadable = false +reloadable = true [libraries]