From 642722bdb1348f2cdc9b28deeb089e26eb55dacc Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 14 Mar 2024 18:58:39 +0100 Subject: [PATCH] build: Enable cimgui on web builds again --- lib/third_party/imgui/cimgui/CMakeLists.txt | 4 ---- plugins/script_loader/templates/CSharp/ImHexScript/Program.cs | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/third_party/imgui/cimgui/CMakeLists.txt b/lib/third_party/imgui/cimgui/CMakeLists.txt index fa9706148..6d9d91e82 100644 --- a/lib/third_party/imgui/cimgui/CMakeLists.txt +++ b/lib/third_party/imgui/cimgui/CMakeLists.txt @@ -4,10 +4,6 @@ project(imgui_cimgui) set(CMAKE_CXX_STANDARD 17) -if (IMHEX_STATIC_LINK_PLUGINS) - return() -endif() - if (NOT IMHEX_EXTERNAL_PLUGIN_BUILD) add_library(imgui_cimgui OBJECT source/cimgui.cpp diff --git a/plugins/script_loader/templates/CSharp/ImHexScript/Program.cs b/plugins/script_loader/templates/CSharp/ImHexScript/Program.cs index 047fee9c2..d7fb00686 100644 --- a/plugins/script_loader/templates/CSharp/ImHexScript/Program.cs +++ b/plugins/script_loader/templates/CSharp/ImHexScript/Program.cs @@ -1,5 +1,6 @@ using ImHex; using ImGuiNET; + class Script { public static void OnLoad()