GDScript: Canonicalize script path in FQCN
This commit is contained in:
parent
81f3d43cc1
commit
8ffc50ee8c
5 changed files with 15 additions and 17 deletions
|
|
@ -230,7 +230,10 @@ public:
|
|||
static String debug_get_script_name(const Ref<Script> &p_script);
|
||||
#endif
|
||||
|
||||
static bool is_equal_gdscript_paths(const String &p_path_a, const String &p_path_b);
|
||||
static String canonicalize_path(const String &p_path);
|
||||
_FORCE_INLINE_ static bool is_canonically_equal_paths(const String &p_path_a, const String &p_path_b) {
|
||||
return canonicalize_path(p_path_a) == canonicalize_path(p_path_b);
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ StringName get_local_name() const { return local_name; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue