summaryrefslogtreecommitdiffstats
path: root/core/config
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-09-17 15:05:20 +0200
committerkobewi <kobewi4e@gmail.com>2024-09-17 15:05:20 +0200
commit41d0971c7ea228a2ba50c3b62b115ea23f048f90 (patch)
tree66ba8043d3c13890db95fa63ba991a0488b3800d /core/config
parent02b16d2f544e323b7b7f57e6e992b0b8e5d8b954 (diff)
downloadredot-engine-41d0971c7ea228a2ba50c3b62b115ea23f048f90.tar.gz
Fix path error when saving ProjectSettings
Diffstat (limited to 'core/config')
-rw-r--r--core/config/project_settings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp
index 32f36e01f9..7951ee9edd 100644
--- a/core/config/project_settings.cpp
+++ b/core/config/project_settings.cpp
@@ -1016,7 +1016,7 @@ Error ProjectSettings::save_custom(const String &p_path, const CustomMap &p_cust
}
}
// Check for the existence of a csproj file.
- if (_csproj_exists(p_path.get_base_dir())) {
+ if (_csproj_exists(get_resource_path())) {
// If there is a csproj file, add the C# feature if it doesn't already exist.
if (!project_features.has("C#")) {
project_features.append("C#");
@@ -1574,6 +1574,7 @@ ProjectSettings::ProjectSettings() {
ProjectSettings::ProjectSettings(const String &p_path) {
if (load_custom(p_path) == OK) {
+ resource_path = p_path.get_base_dir();
project_loaded = true;
}
}