Update dir_access_unix.cpp

This commit is contained in:
Nguyen Truong An 2025-02-25 12:11:46 +01:00 committed by GitHub
parent a1c966688e
commit e0a87c0255
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -442,14 +442,13 @@ String DirAccessUnix::read_link(String p_file) {
link.parse_utf8(buf, len);
}
return link;
#endif // !HORIZON_ENABLED
#endif
}
Error DirAccessUnix::create_link(String p_source, String p_target) {
#ifdef VITA_ENABLED
#ifdef VITA_ENABLED || HORIZON_ENABLED
return FAILED;
#else
#ifndef HORIZON_ENABLED
if (p_target.is_rel_path())
p_target = get_current_dir().plus_file(p_target);