correct for VITA

This commit is contained in:
Nguyen Truong An 2025-02-28 09:49:25 +00:00
parent 6ebb78c5ba
commit 100a0f50e2

View File

@ -447,7 +447,7 @@ String DirAccessUnix::read_link(String p_file) {
Error DirAccessUnix::create_link(String p_source, String p_target) {
#if defined(VITA_ENABLED) || defined(HORIZON_ENABLED)
return FAILED;
return FAILED; // If Vita or Horizon, just return FAILED and do nothing else
#else
if (p_target.is_rel_path()) {
p_target = get_current_dir().plus_file(p_target);
@ -458,15 +458,14 @@ Error DirAccessUnix::create_link(String p_source, String p_target) {
if (symlink(p_source.utf8().get_data(), p_target.utf8().get_data()) == 0) {
return OK;
} else
#endif
{
} else {
return FAILED;
}
#endif
}
uint64_t DirAccessUnix::get_space_left() {
#ifndef NO_STATVFS
struct statvfs vfs;