mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-22 11:21:18 +02:00
correct vita
This commit is contained in:
parent
54f13fbceb
commit
3acaf3b396
@ -446,25 +446,25 @@ String DirAccessUnix::read_link(String p_file) {
|
||||
}
|
||||
|
||||
Error DirAccessUnix::create_link(String p_source, String p_target) {
|
||||
#ifdef VITA_ENABLED || HORIZON_ENABLED
|
||||
return FAILED;
|
||||
#if defined(VITA_ENABLED) || defined(HORIZON_ENABLED)
|
||||
return FAILED;
|
||||
#else
|
||||
if (p_target.is_rel_path())
|
||||
p_target = get_current_dir().plus_file(p_target);
|
||||
if (p_target.is_rel_path()) {
|
||||
p_target = get_current_dir().plus_file(p_target);
|
||||
}
|
||||
|
||||
p_source = fix_path(p_source);
|
||||
p_target = fix_path(p_target);
|
||||
p_source = fix_path(p_source);
|
||||
p_target = fix_path(p_target);
|
||||
|
||||
if (symlink(p_source.utf8().get_data(), p_target.utf8().get_data()) == 0) {
|
||||
return OK;
|
||||
} else
|
||||
#endif // !HORIZON_ENABLED
|
||||
{
|
||||
return FAILED;
|
||||
}
|
||||
if (symlink(p_source.utf8().get_data(), p_target.utf8().get_data()) == 0) {
|
||||
return OK;
|
||||
} else {
|
||||
return FAILED;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
uint64_t DirAccessUnix::get_space_left() {
|
||||
#ifndef NO_STATVFS
|
||||
struct statvfs vfs;
|
||||
|
Loading…
Reference in New Issue
Block a user