aboutsummaryrefslogtreecommitdiff
path: root/modules/mono/editor/GodotSharpTools/Project/ProjectExtensions.cs
diff options
context:
space:
mode:
authorIgnacio Etcheverry2017-10-05 19:42:22 +0200
committerGitHub2017-10-05 19:42:22 +0200
commit928efe06d672d8afeb595f75878746a51e4dc2ce (patch)
tree552e08e25c57ba021a273780ac6fca4aed5f5c1c /modules/mono/editor/GodotSharpTools/Project/ProjectExtensions.cs
parentb9b9a9f86ee4f0905629259d3e63e6d97e7b3e3b (diff)
parent1d309439cbdaa21a75731bd8db28217690e829a2 (diff)
downloadgodot-928efe06d672d8afeb595f75878746a51e4dc2ce.tar.gz
godot-928efe06d672d8afeb595f75878746a51e4dc2ce.tar.zst
godot-928efe06d672d8afeb595f75878746a51e4dc2ce.zip
Merge pull request #11845 from neikeq/music-is-overrated
- Fixed uninitialized local - Improved msbuild search on Unix platforms - Add C# script to csproj when attaching it to an object
Diffstat (limited to '')
-rw-r--r--modules/mono/editor/GodotSharpTools/Project/ProjectExtensions.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotSharpTools/Project/ProjectExtensions.cs b/modules/mono/editor/GodotSharpTools/Project/ProjectExtensions.cs
index 6a9773153..f00ec5a2a 100644
--- a/modules/mono/editor/GodotSharpTools/Project/ProjectExtensions.cs
+++ b/modules/mono/editor/GodotSharpTools/Project/ProjectExtensions.cs
@@ -27,12 +27,15 @@ namespace GodotSharpTools.Project
return false;
}
- public static void AddItemChecked(this ProjectRootElement root, string itemType, string include)
+ public static bool AddItemChecked(this ProjectRootElement root, string itemType, string include)
{
if (!root.HasItem(itemType, include))
{
root.AddItem(itemType, include);
+ return true;
}
+
+ return false;
}
public static Guid GetGuid(this ProjectRootElement root)