Kaynağa Gözat

Removed no longer needed check

Juan Linietsky 9 yıl önce
ebeveyn
işleme
f9bd038ca7
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      drivers/unix/dir_access_unix.cpp

+ 2 - 2
drivers/unix/dir_access_unix.cpp

@@ -248,7 +248,7 @@ Error DirAccessUnix::change_dir(String p_dir) {
 
 
 	chdir(current_dir.utf8().get_data()); //ascii since this may be unicode or wathever the host os wants
 	chdir(current_dir.utf8().get_data()); //ascii since this may be unicode or wathever the host os wants
 	bool worked=(chdir(p_dir.utf8().get_data())==0); // we can only give this utf8
 	bool worked=(chdir(p_dir.utf8().get_data())==0); // we can only give this utf8
-#ifndef IPHONE_ENABLED
+
 	String base = _get_root_path();
 	String base = _get_root_path();
 	if (base!="") {
 	if (base!="") {
 
 
@@ -258,7 +258,7 @@ Error DirAccessUnix::change_dir(String p_dir) {
 		if (!new_dir.begins_with(base))
 		if (!new_dir.begins_with(base))
 			worked=false;
 			worked=false;
 	}
 	}
-#endif
+
 	if (worked) {
 	if (worked) {
 
 
 		getcwd(real_current_dir_name,2048);
 		getcwd(real_current_dir_name,2048);