mirror of
https://github.com/godotengine/godot
synced 2024-09-15 22:48:13 +00:00
Merge pull request #81690 from raulsntos/dotnet/hide-hostfxr-error
C#: Hide hostfxr not found error
This commit is contained in:
commit
5f1e56ff26
|
@ -320,7 +320,12 @@ bool get_dotnet_root_from_env(String &r_dotnet_root) {
|
||||||
|
|
||||||
bool godotsharp::hostfxr_resolver::try_get_path_from_dotnet_root(const String &p_dotnet_root, String &r_fxr_path) {
|
bool godotsharp::hostfxr_resolver::try_get_path_from_dotnet_root(const String &p_dotnet_root, String &r_fxr_path) {
|
||||||
String fxr_dir = path::join(p_dotnet_root, "host", "fxr");
|
String fxr_dir = path::join(p_dotnet_root, "host", "fxr");
|
||||||
ERR_FAIL_COND_V_MSG(!DirAccess::exists(fxr_dir), false, "The host fxr folder does not exist: " + fxr_dir);
|
if (!DirAccess::exists(fxr_dir)) {
|
||||||
|
if (OS::get_singleton()->is_stdout_verbose()) {
|
||||||
|
ERR_PRINT("The host fxr folder does not exist: " + fxr_dir + ".");
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return get_latest_fxr(fxr_dir, r_fxr_path);
|
return get_latest_fxr(fxr_dir, r_fxr_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue