Merge pull request #89677 from enetheru/patch-2
Print correct path when unable to find GDExtension library
This commit is contained in:
commit
23f55c06fb
1 changed files with 2 additions and 2 deletions
|
@ -735,7 +735,7 @@ Error GDExtension::open_library(const String &p_path, const String &p_entry_symb
|
||||||
bool library_copied = false;
|
bool library_copied = false;
|
||||||
if (Engine::get_singleton()->is_editor_hint()) {
|
if (Engine::get_singleton()->is_editor_hint()) {
|
||||||
if (!FileAccess::exists(abs_path)) {
|
if (!FileAccess::exists(abs_path)) {
|
||||||
ERR_PRINT("GDExtension library not found: " + library_path);
|
ERR_PRINT("GDExtension library not found: " + abs_path);
|
||||||
return ERR_FILE_NOT_FOUND;
|
return ERR_FILE_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -750,7 +750,7 @@ Error GDExtension::open_library(const String &p_path, const String &p_entry_symb
|
||||||
|
|
||||||
Error copy_err = DirAccess::copy_absolute(abs_path, copy_path);
|
Error copy_err = DirAccess::copy_absolute(abs_path, copy_path);
|
||||||
if (copy_err) {
|
if (copy_err) {
|
||||||
ERR_PRINT("Error copying GDExtension library: " + library_path);
|
ERR_PRINT("Error copying GDExtension library: " + abs_path);
|
||||||
return ERR_CANT_CREATE;
|
return ERR_CANT_CREATE;
|
||||||
}
|
}
|
||||||
FileAccess::set_hidden_attribute(copy_path, true);
|
FileAccess::set_hidden_attribute(copy_path, true);
|
||||||
|
|
Loading…
Reference in a new issue