Merge pull request #90961 from Lateasusual/gdextension-hot-reloading-borked
GDExtension: Fix missing library path breaking hot reloading
This commit is contained in:
commit
e22743298a
1 changed files with 2 additions and 0 deletions
|
@ -785,6 +785,8 @@ Error GDExtension::open_library(const String &p_path, const String &p_entry_symb
|
||||||
// If temporary files are generated, let's change the library path to point at the original,
|
// If temporary files are generated, let's change the library path to point at the original,
|
||||||
// because that's what we want to check to see if it's changed.
|
// because that's what we want to check to see if it's changed.
|
||||||
library_path = actual_lib_path.get_base_dir().path_join(p_path.get_file());
|
library_path = actual_lib_path.get_base_dir().path_join(p_path.get_file());
|
||||||
|
} else {
|
||||||
|
library_path = p_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_FAIL_COND_V_MSG(err == ERR_FILE_NOT_FOUND, err, "GDExtension dynamic library not found: " + abs_path);
|
ERR_FAIL_COND_V_MSG(err == ERR_FILE_NOT_FOUND, err, "GDExtension dynamic library not found: " + abs_path);
|
||||||
|
|
Loading…
Reference in a new issue