Fixed dir access return value, changed it to Error like all other funcs

This commit is contained in:
Juan Linietsky 2017-01-14 09:16:41 -03:00
parent 7b9f2d9929
commit da4170540c
12 changed files with 21 additions and 21 deletions

View file

@ -44,7 +44,7 @@ DirAccess *DirAccessUnix::create_fs() {
return memnew( DirAccessUnix );
}
bool DirAccessUnix::list_dir_begin() {
Error DirAccessUnix::list_dir_begin() {
list_dir_end(); //close any previous dir opening!
@ -55,9 +55,9 @@ bool DirAccessUnix::list_dir_begin() {
dir_stream = opendir(current_dir.utf8().get_data());
//chdir(real_current_dir_name);
if (!dir_stream)
return true; //error!
return ERR_CANT_OPEN; //error!
return false;
return OK;
}
bool DirAccessUnix::file_exists(String p_file) {