mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #97115 from KoBeWi/csproj_exists,_but_not_where_you_are_looking_in
Fix path error when saving ProjectSettings
This commit is contained in:
commit
de2517a18c
@ -1016,7 +1016,7 @@ Error ProjectSettings::save_custom(const String &p_path, const CustomMap &p_cust
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Check for the existence of a csproj file.
|
// 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 there is a csproj file, add the C# feature if it doesn't already exist.
|
||||||
if (!project_features.has("C#")) {
|
if (!project_features.has("C#")) {
|
||||||
project_features.append("C#");
|
project_features.append("C#");
|
||||||
@ -1574,6 +1574,7 @@ ProjectSettings::ProjectSettings() {
|
|||||||
|
|
||||||
ProjectSettings::ProjectSettings(const String &p_path) {
|
ProjectSettings::ProjectSettings(const String &p_path) {
|
||||||
if (load_custom(p_path) == OK) {
|
if (load_custom(p_path) == OK) {
|
||||||
|
resource_path = p_path.get_base_dir();
|
||||||
project_loaded = true;
|
project_loaded = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user