Skip to content

Commit 122bff6

Browse files
committed
Merge pull request godotengine#97115 from KoBeWi/csproj_exists,_but_not_where_you_are_looking_in
Fix path error when saving ProjectSettings
2 parents 631603f + 784d75a commit 122bff6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/config/project_settings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ Error ProjectSettings::save_custom(const String &p_path, const CustomMap &p_cust
10161016
}
10171017
}
10181018
// Check for the existence of a csproj file.
1019-
if (_csproj_exists(p_path.get_base_dir())) {
1019+
if (_csproj_exists(get_resource_path())) {
10201020
// If there is a csproj file, add the C# feature if it doesn't already exist.
10211021
if (!project_features.has("C#")) {
10221022
project_features.append("C#");
@@ -1574,6 +1574,7 @@ ProjectSettings::ProjectSettings() {
15741574

15751575
ProjectSettings::ProjectSettings(const String &p_path) {
15761576
if (load_custom(p_path) == OK) {
1577+
resource_path = p_path.get_base_dir();
15771578
project_loaded = true;
15781579
}
15791580
}

0 commit comments

Comments
 (0)