correct for both vita and horizon

This commit is contained in:
Nguyen Truong An 2025-02-28 09:57:36 +00:00
parent 100a0f50e2
commit 3ea9bf04a1

View File

@ -446,8 +446,10 @@ 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; // If Vita or Horizon, just return FAILED and do nothing else
#ifdef VITA_ENABLED
return FAILED;
#elif defined(HORIZON_ENABLED)
return FAILED;
#else
if (p_target.is_rel_path()) {
p_target = get_current_dir().plus_file(p_target);
@ -465,7 +467,6 @@ Error DirAccessUnix::create_link(String p_source, String p_target) {
}
uint64_t DirAccessUnix::get_space_left() {
#ifndef NO_STATVFS
struct statvfs vfs;