From d5b8dffb1a59814358723537044a4126ae3cdd11 Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Tue, 21 May 2024 22:22:00 +0100 Subject: [PATCH] csproj bool values are not case sensitive --- addons/imgui-godot/scripts/ImGuiPlugin.gd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/imgui-godot/scripts/ImGuiPlugin.gd b/addons/imgui-godot/scripts/ImGuiPlugin.gd index 36b657b..85c3975 100644 --- a/addons/imgui-godot/scripts/ImGuiPlugin.gd +++ b/addons/imgui-godot/scripts/ImGuiPlugin.gd @@ -8,13 +8,13 @@ func _enter_tree(): # remove obsolete ImGuiLayer autoload if ProjectSettings.has_setting("autoload/ImGuiLayer"): remove_autoload_singleton("ImGuiLayer") - + # warn user if csproj will fail to build if "C#" in ProjectSettings.get_setting("application/config/features"): var projPath: String = ProjectSettings.get_setting("dotnet/project/solution_directory") var fn: String = "%s.csproj" % ProjectSettings.get_setting("dotnet/project/assembly_name") check_csproj(projPath.path_join(fn)) - + func check_csproj(fn): var fi := FileAccess.open(fn, FileAccess.READ) if !fi: @@ -29,13 +29,13 @@ func check_csproj(fn): var netVer := data.substr(idx, idx_dot - idx).to_int() if netVer < 8: changesNeeded += "- Set target framework to .NET 8 or later\n" - - if !data.contains("True"): + + if !data.contains(""): changesNeeded += "- Allow unsafe blocks\n" - + if !data.contains("