mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Fixed dir access return value, changed it to Error like all other funcs
This commit is contained in:
parent
7b9f2d9929
commit
da4170540c
12 changed files with 21 additions and 21 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue