1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

GDScript: Canonicalize script path in FQCN

This commit is contained in:
Danil Alexeev
2024-02-26 10:46:24 +03:00
parent 81f3d43cc1
commit 8ffc50ee8c
5 changed files with 15 additions and 17 deletions

View File

@@ -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; }