mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-22 11:21:18 +02:00
correct for VITA
This commit is contained in:
parent
6ebb78c5ba
commit
100a0f50e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user