diff options
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r-- | modules/gdscript/gdscript.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h index 981cbb3734..7c471c285b 100644 --- a/modules/gdscript/gdscript.h +++ b/modules/gdscript/gdscript.h @@ -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; } |